mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 18:12:05 +08:00
loggerd: fix delayed exit from main thread
old-commit-hash: 5f36b4819970e11d4ffc2757f1d6a990b00881f7
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user