diff options
author | Anna Henningsen <anna@addaleax.net> | 2017-09-10 06:05:48 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-06-06 20:43:41 +0300 |
commit | 5c4d2e60b500a3d093de54b76b17b8f4c52f5da4 (patch) | |
tree | 4cd8c875f0dab12139fd97ac9a7130a7ed19e4be /src/handle_wrap.h | |
parent | ef25e095e57a6d589f2c6bed661ffaded0c17abd (diff) |
src: simplify handle closing
Remove one extra closing state and use a smart pointer for
deleting `HandleWrap`s.
PR-URL: https://github.com/nodejs/node/pull/20876
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Shingo Inoue <leko.noor@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>
Reviewed-By: John-David Dalton <john.david.dalton@gmail.com>
Reviewed-By: Gus Caplan <me@gus.host>
Diffstat (limited to 'src/handle_wrap.h')
-rw-r--r-- | src/handle_wrap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/handle_wrap.h b/src/handle_wrap.h index b2b09f5010d..4e177d249f2 100644 --- a/src/handle_wrap.h +++ b/src/handle_wrap.h @@ -95,7 +95,7 @@ class HandleWrap : public AsyncWrap { // refer to `doc/guides/node-postmortem-support.md` friend int GenDebugSymbols(); ListNode<HandleWrap> handle_wrap_queue_; - enum { kInitialized, kClosing, kClosingWithCallback, kClosed } state_; + enum { kInitialized, kClosing, kClosed } state_; uv_handle_t* const handle_; }; |