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

This commit is contained in:
sta 2014-12-30 15:23:45 +09:00
parent e43558c780
commit d25abde628

View File

@ -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