mirror of
https://gitee.com/openharmony/developtools_hdc
synced 2025-02-22 12:12:00 +00:00
update src/common/transfer.cpp.
Signed-off-by: liupeng298 <liupeng298@huawei.com>
This commit is contained in:
parent
e577077136
commit
85ec1ed028
@ -58,6 +58,7 @@ void HdcTransferBase::CloseFd(CtxFile *context, ssize_t fd)
|
||||
return;
|
||||
}
|
||||
auto callback = [](uv_fs_t *fsPtr) -> void {
|
||||
uv_fs_req_cleanup(fsPtr);
|
||||
delete fsPtr;
|
||||
};
|
||||
uv_fs_close(context->loop, fs, fd, callback);
|
||||
|
Loading…
x
Reference in New Issue
Block a user