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: nodejs#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 MayaLekova committed May 8, 2018
1 parent 8a999a9 commit e8020cf
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 e8020cf

Please sign in to comment.