[Modify] Replace it

This commit is contained in:
sta 2020-09-01 22:08:44 +09:00
parent 1cbe07b8a0
commit cf8dcc54ce

View File

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