[Fix] Clear after calling the EndPointManager.RemoveListener method
This commit is contained in:
parent
09e33b2c33
commit
c0815b2781
@ -166,12 +166,10 @@ namespace WebSocketSharp.Net
|
||||
if (_listener.IsDisposed)
|
||||
throw new ObjectDisposedException (_listener.GetType ().ToString ());
|
||||
|
||||
if (_listener.IsListening)
|
||||
EndPointManager.RemoveListener (_listener);
|
||||
|
||||
_prefixes.Clear ();
|
||||
|
||||
if (!_listener.IsListening)
|
||||
return;
|
||||
|
||||
EndPointManager.RemoveListener (_listener);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user