[Modify] Replace it

This commit is contained in:
sta 2021-05-08 20:44:05 +09:00
parent 8aaef1ef0d
commit 467a79531c

View File

@ -188,8 +188,7 @@ namespace WebSocketSharp.Net
/// </exception> /// </exception>
public bool Contains (string uriPrefix) public bool Contains (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");