[Modify] Replace it

master
sta 5 years ago
parent 1cbe07b8a0
commit cf8dcc54ce

@ -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");

Loading…
Cancel
Save