[Modify] Polish it

This commit is contained in:
sta 2020-08-17 22:14:26 +09:00
parent 94adee0aaf
commit 8c622ba188

View File

@ -163,7 +163,10 @@ namespace WebSocketSharp.Net
{
_listener.CheckDisposed ();
_prefixes.Clear ();
if (_listener.IsListening)
if (!_listener.IsListening)
return;
EndPointManager.RemoveListener (_listener);
}