diff options
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Threading/Win32ThreadPoolNativeOverlapped.cs')
-rw-r--r-- | src/System.Private.CoreLib/src/System/Threading/Win32ThreadPoolNativeOverlapped.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/src/System/Threading/Win32ThreadPoolNativeOverlapped.cs b/src/System.Private.CoreLib/src/System/Threading/Win32ThreadPoolNativeOverlapped.cs index 3249e5037..a47c16d8f 100644 --- a/src/System.Private.CoreLib/src/System/Threading/Win32ThreadPoolNativeOverlapped.cs +++ b/src/System.Private.CoreLib/src/System/Threading/Win32ThreadPoolNativeOverlapped.cs @@ -199,6 +199,12 @@ namespace System.Threading Debug.Assert(!data._completed); data._completed = true; + if (data._executionContext == null) + { + data._callback(errorCode, bytesWritten, ToNativeOverlapped(overlapped)); + return; + } + ContextCallback callback = s_executionContextCallback; if (callback == null) s_executionContextCallback = callback = OnExecutionContextCallback; |