Skip to content

Commit

Permalink
fixed test failure - closing WatchmanWatcher instance was not passing…
Browse files Browse the repository at this point in the history
… the instance to close into WatchmanClient, resulted in spurious events (#114)

fixed test failure
  • Loading branch information
stefanpenner authored Feb 8, 2018
1 parent 14fbf09 commit f051102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/watchman_watcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ WatchmanWatcher.prototype.emitEvent = function(
*/

WatchmanWatcher.prototype.close = function(callback) {
this._client.closeWatcher();
this._client.closeWatcher(this);
callback && callback(null, true);
};

Expand Down

0 comments on commit f051102

Please sign in to comment.