[Modify] Replace it
This commit is contained in:
parent
f3a7f1259d
commit
0212b93558
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user