[Modify] Polish it
This commit is contained in:
parent
9a1c27d489
commit
c56eae9207
@ -137,8 +137,12 @@ namespace WebSocketSharp.Net
|
||||
|
||||
public WaitHandle AsyncWaitHandle {
|
||||
get {
|
||||
lock (_sync)
|
||||
return _waitHandle ?? (_waitHandle = new ManualResetEvent (_completed));
|
||||
lock (_sync) {
|
||||
if (_waitHandle == null)
|
||||
_waitHandle = new ManualResetEvent (_completed);
|
||||
|
||||
return _waitHandle;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user