Skip to content

Commit 3e1e450

Browse files
addaleaxBridgeAR
authored andcommitted
fs: use Persistent::Reset() for resetting handles
PR-URL: #18650 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Kyle Farnung <[email protected]> Reviewed-By: Tiancheng "Timothy" Gu <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 703e37c commit 3e1e450

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/node_file.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ class FileHandle : public AsyncWrap {
152152
}
153153
~CloseReq() {
154154
uv_fs_req_cleanup(req());
155-
promise_.Empty();
156-
ref_.Empty();
155+
promise_.Reset();
156+
ref_.Reset();
157157
}
158158

159159
FileHandle* file_handle();

0 commit comments

Comments
 (0)