mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-26 00:08:30 -04:00
Notify all packets when doing packetqueue:stop so prevent deadlock when waiting for decode
This commit is contained in:
1 parent
1d40279fcf
commit
6f02096098
1 file changed
+1
@@ -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