mirror of
https://github.com/hoytech/strfry.git
synced 2025-06-17 08:48:51 +00:00
stop WriterPipeline threads on shutdown
This commit is contained in:
@ -50,7 +50,7 @@ struct WriterPipeline {
|
||||
shutdownRequested = true;
|
||||
writerInbox.push_move({});
|
||||
shutdownCv.notify_all();
|
||||
break;
|
||||
return;
|
||||
}
|
||||
|
||||
std::string flatStr;
|
||||
@ -143,6 +143,7 @@ struct WriterPipeline {
|
||||
if (shutdownComplete) {
|
||||
flushInbox.push_move(true);
|
||||
if (numLive != 0) LW << "numLive was not 0 after shutdown!";
|
||||
return;
|
||||
}
|
||||
|
||||
backpressureCv.notify_all();
|
||||
|
Reference in New Issue
Block a user