[Modify] Polish it
This commit is contained in:
parent
94adee0aaf
commit
8c622ba188
@ -163,8 +163,11 @@ namespace WebSocketSharp.Net
|
||||
{
|
||||
_listener.CheckDisposed ();
|
||||
_prefixes.Clear ();
|
||||
if (_listener.IsListening)
|
||||
EndPointManager.RemoveListener (_listener);
|
||||
|
||||
if (!_listener.IsListening)
|
||||
return;
|
||||
|
||||
EndPointManager.RemoveListener (_listener);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user