Fix for issue #94, handle the value returned from the Socket.AcceptAsync method
This commit is contained in:
@@ -119,7 +119,8 @@ namespace WebSocketSharp.Net
|
||||
var args = new SocketAsyncEventArgs ();
|
||||
args.UserToken = this;
|
||||
args.Completed += onAccept;
|
||||
_socket.AcceptAsync (args);
|
||||
if (!_socket.AcceptAsync (args))
|
||||
onAccept (this, args);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
Reference in New Issue
Block a user