From 5e78cf4998c63b44b744c0fd623b9e5f16aea070 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Sat, 1 Jul 2017 07:00:35 -0700 Subject: [PATCH] node: fix close bug. --- lib/node/node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/node/node.js b/lib/node/node.js index bf73eff3..ebeac7fa 100644 --- a/lib/node/node.js +++ b/lib/node/node.js @@ -127,7 +127,7 @@ Node.prototype.init = function init() { this.handlePreopen(); }); - this.hook('preopen', () => { + this.hook('preclose', () => { this.handlePreclose(); });