[Modify] Replace it

This commit is contained in:
sta 2020-08-28 22:03:43 +09:00
parent f3a7f1259d
commit 0212b93558

View File

@ -138,8 +138,10 @@ namespace WebSocketSharp.Net
/// </exception>
public void Add (string uriPrefix)
{
if (_listener.IsDisposed)
throw new ObjectDisposedException (_listener.GetType ().ToString ());
HttpListenerPrefix.CheckPrefix (uriPrefix);
_listener.CheckDisposed ();
if (_prefixes.Contains (uriPrefix))
return;