Skip to content

Commit

Permalink
fs: use Persistent::Reset() for resetting handles
Browse files Browse the repository at this point in the history
PR-URL: #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>
  • Loading branch information
addaleax authored and BridgeAR committed Feb 16, 2018
1 parent 703e37c commit 3e1e450
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 3e1e450

Please sign in to comment.