Skip to content

Commit 6ab0e08

Browse files
committed
check for shutdown condition while waiting for first sample
1 parent fded925 commit 6ab0e08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

recording.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ void recording::typed_transfer_loop(streamid_t streamid, double srate, const inl
374374

375375
// Pull the first sample
376376
first_timestamp = 0.0;
377-
while(first_timestamp == 0.0)
377+
while(!shutdown_ && first_timestamp == 0.0)
378378
first_timestamp = last_timestamp = in->pull_sample(chunk, 4.0);
379379
timestamps.push_back(first_timestamp);
380380
file_.write_data_chunk(streamid, timestamps, chunk, in->get_channel_count());

0 commit comments

Comments
 (0)