fix double stop/free of decoder and analysis threads
parent
c39ec5873b
commit
284fe52b5f
|
@ -3180,9 +3180,11 @@ int Monitor::Close() {
|
|||
packetqueue.clear();
|
||||
if (decoder) {
|
||||
delete decoder;
|
||||
decoder = nullptr;
|
||||
}
|
||||
if (analysis_thread) {
|
||||
delete analysis_thread;
|
||||
analysis_thread = nullptr;
|
||||
}
|
||||
std::lock_guard<std::mutex> lck(event_mutex);
|
||||
if (event) {
|
||||
|
|
Loading…
Reference in New Issue