[Modify] Polish it
This commit is contained in:
parent
9a1c27d489
commit
c56eae9207
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user