[Modify] Replace it

This commit is contained in:
sta 2021-05-08 20:42:51 +09:00
parent 691477b338
commit 8aaef1ef0d

View File

@ -160,8 +160,7 @@ namespace WebSocketSharp.Net
/// </exception>
public void Clear ()
{
if (_listener.IsDisposed)
throw new ObjectDisposedException (_listener.GetType ().ToString ());
_listener.CheckDisposed ();
if (_listener.IsListening)
EndPointManager.RemoveListener (_listener);