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

This commit is contained in:
Isaac Connor
2022-08-02 20:44:45 -04:00
parent 1d40279fcf
commit 6f02096098

View File

@@ -342,6 +342,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() {