[Modify] Replace it
This commit is contained in:
parent
c56eae9207
commit
89b0d866be
@ -181,8 +181,19 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
internal void Complete (Exception exception)
|
internal void Complete (Exception exception)
|
||||||
{
|
{
|
||||||
_exception = exception;
|
lock (_sync) {
|
||||||
Complete ();
|
if (_completed)
|
||||||
|
return;
|
||||||
|
|
||||||
|
_completed = true;
|
||||||
|
_exception = exception;
|
||||||
|
|
||||||
|
if (_waitHandle != null)
|
||||||
|
_waitHandle.Set ();
|
||||||
|
|
||||||
|
if (_callback != null)
|
||||||
|
_callback.BeginInvoke (this, ar => _callback.EndInvoke (ar), null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user