Chromium Code Reviews| Index: runtime/bin/file_patch.dart |
| diff --git a/runtime/bin/file_patch.dart b/runtime/bin/file_patch.dart |
| index a08eaf99b64acc270937220047dbb834678f1fee..1fb9b90d943a714b0ccd5d0010b6c4b4627ed565 100644 |
| --- a/runtime/bin/file_patch.dart |
| +++ b/runtime/bin/file_patch.dart |
| @@ -143,9 +143,10 @@ class _FileSystemWatcherImpl |
| } |
| void _cancel() { |
| - _unwatchPath(); |
| if (_subscription != null) { |
| + _unwatchPath(); |
| _subscription.cancel(); |
| + _subscription = null; |
| } |
| _controller.close(); |
| } |