Refactored a few for EndPointListener.cs
This commit is contained in:
parent
61f62f050f
commit
a26ecb8595
@ -404,8 +404,7 @@ namespace WebSocketSharp.Net
|
||||
do {
|
||||
prefs = _prefixes;
|
||||
if (prefs.ContainsKey (prefix)) {
|
||||
var other = prefs[prefix];
|
||||
if (other != listener)
|
||||
if (prefs[prefix] != listener)
|
||||
throw new HttpListenerException (
|
||||
400, String.Format ("There's another listener for {0}.", prefix)); // TODO: Code?
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user