[Modify] Replace it

This commit is contained in:
sta 2021-05-08 20:40:54 +09:00
parent fdcb83c494
commit 691477b338

View File

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