Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: lib/src/directory_watcher/linux.dart

Issue 995623002: Fix bugs where events could be added after watchers were closed. (Closed) Base URL: git@github.com:dart-lang/watcher@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/directory_watcher/mac_os.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/directory_watcher/linux.dart
diff --git a/lib/src/directory_watcher/linux.dart b/lib/src/directory_watcher/linux.dart
index 76558dd2795e2bf8e61687746191eacdbc74d517..870faa760656f62335ce1875dc11f0d25b2b67a9 100644
--- a/lib/src/directory_watcher/linux.dart
+++ b/lib/src/directory_watcher/linux.dart
@@ -134,7 +134,7 @@ class _LinuxDirectoryWatcher implements ManuallyClosedDirectoryWatcher {
if (isReady) _eventsController.add(event);
}, onError: (error, stackTrace) {
_eventsController.addError(error, stackTrace);
- _eventsController.close();
+ close();
}, onDone: () {
if (_subWatchers[path] == watcher) _subWatchers.remove(path);
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/directory_watcher/mac_os.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698