[Modify] Replace it

This commit is contained in:
sta 2021-05-08 20:46:43 +09:00
parent ecb1c3ad22
commit 9f9415a43d

View File

@ -259,8 +259,7 @@ namespace WebSocketSharp.Net
/// </exception> /// </exception>
public bool Remove (string uriPrefix) public bool Remove (string uriPrefix)
{ {
if (_listener.IsDisposed) _listener.CheckDisposed ();
throw new ObjectDisposedException (_listener.GetType ().ToString ());
if (uriPrefix == null) if (uriPrefix == null)
throw new ArgumentNullException ("uriPrefix"); throw new ArgumentNullException ("uriPrefix");