Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Commit e79cf5b

Browse files
authored
Backport of: dotnet#41013
1 parent ee3acec commit e79cf5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/System.IO.FileSystem.Watcher/src/System/IO/FileSystemWatcher.OSX.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ private void CancellationCallback()
280280
finally
281281
{
282282
StaticWatcherRunLoopManager.UnscheduleFromRunLoop(_eventStream);
283+
_eventStream.Close();
284+
_eventStream = null;
283285
}
284286
}
285287
}

0 commit comments

Comments
 (0)