[Modify] Add a check
This commit is contained in:
parent
02248cd95d
commit
e8fc325e63
@ -73,7 +73,7 @@ namespace WebSocketSharp.Net
|
||||
private Func<IIdentity, NetworkCredential> _credFinder;
|
||||
private bool _disposed;
|
||||
private bool _ignoreWriteExceptions;
|
||||
private bool _listening;
|
||||
private volatile bool _listening;
|
||||
private Logger _logger;
|
||||
private HttpListenerPrefixCollection _prefixes;
|
||||
private string _realm;
|
||||
@ -630,7 +630,11 @@ namespace WebSocketSharp.Net
|
||||
if (_disposed)
|
||||
return;
|
||||
|
||||
if (_listening) {
|
||||
_listening = false;
|
||||
close (true);
|
||||
}
|
||||
|
||||
_disposed = true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user