[Modify] Polish it
This commit is contained in:
parent
d7f4495f81
commit
8e9cb4ffd5
@ -433,9 +433,11 @@ namespace WebSocketSharp.Net
|
|||||||
|
|
||||||
if (prefs.ContainsKey (prefix)) {
|
if (prefs.ContainsKey (prefix)) {
|
||||||
if (prefs[prefix] != prefix.Listener) {
|
if (prefs[prefix] != prefix.Listener) {
|
||||||
throw new HttpListenerException (
|
var msg = String.Format (
|
||||||
87, String.Format ("There's another listener for {0}.", prefix)
|
"There is another listener for {0}.", prefix
|
||||||
);
|
);
|
||||||
|
|
||||||
|
throw new HttpListenerException (87, msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user