mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2024-11-23 23:20:43 +00:00
update src/daemon/daemon_usb.cpp.
Signed-off-by: liupeng298 <liupeng298@huawei.com>
This commit is contained in:
parent
29c2f1b84c
commit
00bb22fd4a
@ -59,10 +59,9 @@ void HdcDaemonUSB::Stop()
|
||||
// module
|
||||
modRunning = false;
|
||||
WRITE_LOG(LOG_DEBUG, "HdcDaemonUSB Stop free main session");
|
||||
Base::TryCloseHandle((uv_handle_t *)&checkEP, [](uv_handle_t * handle) {
|
||||
HdcDaemonUSB *thisClass = reinterpret_cast<HdcDaemonUSB *>(handle->data);
|
||||
thisClass->CloseEndpoint(&thisClass->usbHandle);
|
||||
});
|
||||
Base::TryCloseHandle((uv_handle_t *)&checkEP);
|
||||
CloseEndpoint(&usbHandle);
|
||||
|
||||
WRITE_LOG(LOG_DEBUG, "HdcDaemonUSB Stop free main session finish");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user