Refactored a few for EndPointListener.cs

This commit is contained in:
sta 2015-01-07 14:47:00 +09:00
parent 61f62f050f
commit a26ecb8595

View File

@ -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?