Her own musings were brought to an end on perceiving Mr. Crawford before her, and her thoughts were put into another channel by his engaging her almost instantly for the first two dances. 
Her musings were ended on seeing Mr. Crawford before her; he engaged her for the first two dances. 