fs: use Persistent::Reset() for resetting handles
PR-URL: https://github.com/nodejs/node/pull/18650 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Kyle Farnung <kfarnung@microsoft.com> Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
703e37cf3f
commit
3e1e450f92
@ -152,8 +152,8 @@ class FileHandle : public AsyncWrap {
|
||||
}
|
||||
~CloseReq() {
|
||||
uv_fs_req_cleanup(req());
|
||||
promise_.Empty();
|
||||
ref_.Empty();
|
||||
promise_.Reset();
|
||||
ref_.Reset();
|
||||
}
|
||||
|
||||
FileHandle* file_handle();
|
||||
|
Loading…
x
Reference in New Issue
Block a user