Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc2bd2b commit 8c1227bCopy full SHA for 8c1227b
src/libraries/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.Win32.cs
@@ -105,7 +105,7 @@ private void StopRaisingEvents()
105
// increased, such that the disposal operation won't take effect and close the handle
106
// until that P/Invoke returns; if during that time the FSW is restarted, the IsHandleInvalid
107
// check will see a valid handle, unless we also null it out.
108
- _directoryHandle.Dispose();
+ _directoryHandle?.Dispose();
109
_directoryHandle = null;
110
}
111
0 commit comments