From 2c65fd271472b36d1e27b8580a0c11eb904ae7ea Mon Sep 17 00:00:00 2001 From: sta Date: Wed, 26 Aug 2015 15:57:25 +0900 Subject: [PATCH] Fix for pull request #155, merged https://github.com/ndevenish/websocket-sharp/commit/503ada402b6549e2c57af2d03e9cf12c19553ee2 --- websocket-sharp/Net/HttpListenerAsyncResult.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/websocket-sharp/Net/HttpListenerAsyncResult.cs b/websocket-sharp/Net/HttpListenerAsyncResult.cs index cee32c5e..569bac31 100644 --- a/websocket-sharp/Net/HttpListenerAsyncResult.cs +++ b/websocket-sharp/Net/HttpListenerAsyncResult.cs @@ -37,6 +37,13 @@ */ #endregion +#region Contributors +/* + * Contributors: + * - Nicholas Devenish + */ +#endregion + using System; using System.Security.Principal; using System.Threading; @@ -137,7 +144,7 @@ namespace WebSocketSharp.Net var callback = asyncResult._callback; if (callback != null) - ThreadPool.UnsafeQueueUserWorkItem ( + ThreadPool.QueueUserWorkItem ( state => { try { callback (asyncResult);