stopWatch immediately aborts watching and may be called asynchronously
()
| 1014 | |
| 1015 | // stopWatch immediately aborts watching and may be called asynchronously |
| 1016 | func (f *folder) stopWatch() { |
| 1017 | f.watchMut.Lock() |
| 1018 | f.watchCancel() |
| 1019 | f.watchMut.Unlock() |
| 1020 | f.setWatchError(nil, 0) |
| 1021 | } |
| 1022 | |
| 1023 | // scheduleWatchRestart makes sure watching is restarted from the main for loop |
| 1024 | // in a folder's Serve and thus may be called asynchronously (e.g. when ignores change). |
no test coverage detected