Fix for issue #94, handle the value returned from the Socket.AcceptAsync method

master
sta 11 years ago
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…
Cancel
Save