From f051102a029bc6a7975f4b402c265e3760a5330a Mon Sep 17 00:00:00 2001 From: Stefan Penner Date: Thu, 8 Feb 2018 08:40:59 -0800 Subject: [PATCH] fixed test failure - closing WatchmanWatcher instance was not passing the instance to close into WatchmanClient, resulted in spurious events (#114) fixed test failure --- src/watchman_watcher.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/watchman_watcher.js b/src/watchman_watcher.js index b315155..9440664 100644 --- a/src/watchman_watcher.js +++ b/src/watchman_watcher.js @@ -208,7 +208,7 @@ WatchmanWatcher.prototype.emitEvent = function( */ WatchmanWatcher.prototype.close = function(callback) { - this._client.closeWatcher(); + this._client.closeWatcher(this); callback && callback(null, true); };