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