mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-03-16 12:58:00 -04:00
Notify all packets when doing packetqueue:stop so prevent deadlock when waiting for decode
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user