Notify all packets when doing packetqueue:stop so prevent deadlock when waiting for decode

pull/3609/head
Isaac Connor 2022-08-02 20:44:45 -04:00
parent 66ed1ad184
commit 72676dd706
1 changed files with 1 additions and 0 deletions

View File

@ -350,6 +350,7 @@ void PacketQueue::clearPackets(const std::shared_ptr<ZMPacket> &add_packet) {
void PacketQueue::stop() {
deleting = true;
condition.notify_all();
for (const auto p : pktQueue) p->notify_all();
}
void PacketQueue::clear() {