[Modify] Polish it

This commit is contained in:
sta 2021-02-11 21:37:44 +09:00
parent 9a1c27d489
commit c56eae9207

View File

@ -137,8 +137,12 @@ namespace WebSocketSharp.Net
public WaitHandle AsyncWaitHandle { public WaitHandle AsyncWaitHandle {
get { get {
lock (_sync) lock (_sync) {
return _waitHandle ?? (_waitHandle = new ManualResetEvent (_completed)); if (_waitHandle == null)
_waitHandle = new ManualResetEvent (_completed);
return _waitHandle;
}
} }
} }