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