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