[Modify] Polish it

This commit is contained in:
sta 2021-05-22 21:38:49 +09:00
parent ec462b5ec2
commit c16b0a8b2e

View File

@ -112,8 +112,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;
}
} }
} }