dart-sdk/sdk
Alexander Aprelev 1960cef002 [io/file_watcher] Unregister watched pathId when handle is closed.
When file watching stream reports an error, it will close the handle too after sending "closed" event out to the listeners. Listener should not attempt to do anything with that handle(kept as pathId in the listener). In particular it should not attempt to call that handle to unwatch when user of the listener requested to cancel the listener.

Further fixes for https://github.com/flutter/flutter/issues/46616

Change-Id: Iccc100e294b11d3999ad68e775ef1ceb1d7a5efb
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/133180
Commit-Queue: Alexander Aprelev <aam@google.com>
Reviewed-by: Zichang Guo <zichangguo@google.com>
2020-01-24 18:19:14 +00:00
..
bin [vm] Remove deprecated (and untested) ARMv5 support from the VM 2019-10-23 14:44:33 +00:00
lib [io/file_watcher] Unregister watched pathId when handle is closed. 2020-01-24 18:19:14 +00:00
api_readme.md Update the API docs readme 2020-01-16 21:23:09 +00:00
BUILD.gn Reland of https://dart-review.googlesource.com/c/sdk/+/130134 2020-01-09 16:07:56 +00:00