[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>
public bool Remove (string uriPrefix)
{
if (_listener.IsDisposed)
throw new ObjectDisposedException (_listener.GetType ().ToString ());
_listener.CheckDisposed ();
if (uriPrefix == null)
throw new ArgumentNullException ("uriPrefix");