loggerd: fix delayed exit from main thread

old-commit-hash: 5f36b48199
This commit is contained in:
Adeeb Shihadeh
2021-12-07 18:22:00 -08:00
parent 37d577d399
commit 916c2ed588
+2
View File
@@ -223,6 +223,8 @@ void loggerd_thread() {
while (!do_exit) {
// poll for new messages on all sockets
for (auto sock : poller->poll(1000)) {
if (do_exit) break;
// drain socket
int count = 0;
QlogState &qs = qlog_states[sock];