[Modify] Replace it

This commit is contained in:
sta 2020-08-29 22:32:00 +09:00
parent 0212b93558
commit 4c6bc00341

View File

@ -163,7 +163,9 @@ namespace WebSocketSharp.Net
/// </exception>
public void Clear ()
{
_listener.CheckDisposed ();
if (_listener.IsDisposed)
throw new ObjectDisposedException (_listener.GetType ().ToString ());
_prefixes.Clear ();
if (!_listener.IsListening)