Clear Watcher collection on Unload
This commit is contained in:
1 parent
f645826a81
commit
b7af29b7ef
1 file changed
+2
@@ -138,6 +138,8 @@ internal sealed class MainThreadedFileSystemWatcher : IDisposable
|
||||
void ILoadable.Unload()
|
||||
{
|
||||
Main.OnTickForThirdPartySoftwareOnly -= Tick;
|
||||
_WatchersList?.Clear();
|
||||
_Watchers = [];
|
||||
}
|
||||
|
||||
private void Tick()
|
||||
|
||||
Reference in new issue
Block a user