-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/memfs: stop all Watcher spawn by DirWatcher
Previously, the Watcher goroutine will stopped only if the file is being deleted. If the DirWatcher stopped manually, by calling Stop method, the Watcher goroutine will still running in the background. This changes record all spawned Watcher and stop it when files inside a deleted directory or when Stop called.
- Loading branch information
Showing
2 changed files
with
75 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters