Fix for issue #94, handle the value returned from the Socket.AcceptAsync method
This commit is contained in:
parent
e43558c780
commit
d25abde628
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user