add missing lock for queue, possibly causing crashes
parent
b18cb61f24
commit
a3edd6d417
|
@ -347,6 +347,7 @@ public:
|
|||
}
|
||||
if(!msg.empty()) {
|
||||
sc.writen(msg);
|
||||
std::lock_guard<std::mutex> mut(d->mut);
|
||||
d->queue.pop_front();
|
||||
}
|
||||
else usleep(100000);
|
||||
|
|
Loading…
Reference in New Issue