[Fix] Set system error code 87
This commit is contained in:
parent
aec6123c19
commit
6c36b785c3
@ -156,7 +156,7 @@ namespace WebSocketSharp.Net
|
|||||||
var path = prefix.Path;
|
var path = prefix.Path;
|
||||||
foreach (var pref in prefixes)
|
foreach (var pref in prefixes)
|
||||||
if (pref.Path == path)
|
if (pref.Path == path)
|
||||||
throw new HttpListenerException (400, "The prefix is already in use."); // TODO: Code?
|
throw new HttpListenerException (87, "The prefix is already in use.");
|
||||||
|
|
||||||
prefixes.Add (prefix);
|
prefixes.Add (prefix);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user