Skip to content

Commit da8c244

Browse files
committedApr 26, 2020
catch errors on closing
1 parent 9efbb97 commit da8c244

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/DirectoryWatcher.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ DirectoryWatcher.prototype.getTimes = function() {
356356

357357
DirectoryWatcher.prototype.close = function() {
358358
this.initialScan = false;
359-
this.watcher.close();
359+
this.watcher.close().catch(this.onWatcherError.bind(this));
360360
if(this.nestedWatching) {
361361
Object.keys(this.directories).forEach(function(dir) {
362362
this.directories[dir].close();

0 commit comments

Comments
 (0)
Please sign in to comment.