fix double stop/free of decoder and analysis threads

pull/3195/head
Isaac Connor 2021-03-17 12:57:45 -04:00
parent c39ec5873b
commit 284fe52b5f
1 changed files with 2 additions and 0 deletions

View File

@ -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) {