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