Fix for pull request #155, merged https://github.com/ndevenish/websocket-sharp/commit/503ada402b6549e2c57af2d03e9cf12c19553ee2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user