clear device queue, avoid twice destroying
This commit is contained in:
parent
d7b9734585
commit
9558519cf2
|
@ -1224,6 +1224,7 @@ void usb_monitor::quit(void)
|
|||
std::lock_guard<std::mutex> lock(lock_);
|
||||
for (auto& v : devices_)
|
||||
v->release();
|
||||
devices_.clear();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue