From c6e5016c2fe0b0ef8ddf80369866a4301c0588ba Mon Sep 17 00:00:00 2001 From: Cristian Pop Date: Fri, 26 May 2017 12:38:00 -0700 Subject: [PATCH] Fixing initialization issue for IOCP handle. --- .../src/System/Net/Windows/HttpListener.Windows.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/System.Net.HttpListener/src/System/Net/Windows/HttpListener.Windows.cs b/src/System.Net.HttpListener/src/System/Net/Windows/HttpListener.Windows.cs index 265ac7f1500a..2f63cd225180 100644 --- a/src/System.Net.HttpListener/src/System/Net/Windows/HttpListener.Windows.cs +++ b/src/System.Net.HttpListener/src/System/Net/Windows/HttpListener.Windows.cs @@ -1915,7 +1915,7 @@ internal unsafe DisconnectAsyncResult(HttpListener httpListener, ulong connectio _httpListener = httpListener; _connectionId = connectionId; // we can call the Unsafe API here, we won't ever call user code - _nativeOverlapped = httpListener._requestQueueBoundHandle.AllocateNativeOverlapped(s_IOCallback, state: this, pinData: null); + _nativeOverlapped = httpListener.RequestQueueBoundHandle.AllocateNativeOverlapped(s_IOCallback, state: this, pinData: null); } internal bool StartOwningDisconnectHandling()