[Modify] Polish it

This commit is contained in:
sta 2020-08-17 22:09:37 +09:00
parent a4da7191e4
commit 94adee0aaf

View File

@ -139,9 +139,8 @@ namespace WebSocketSharp.Net
/// </exception> /// </exception>
public void Add (string uriPrefix) public void Add (string uriPrefix)
{ {
_listener.CheckDisposed ();
HttpListenerPrefix.CheckPrefix (uriPrefix); HttpListenerPrefix.CheckPrefix (uriPrefix);
_listener.CheckDisposed ();
if (_prefixes.Contains (uriPrefix)) if (_prefixes.Contains (uriPrefix))
return; return;