[Fix] Set system error code 87

This commit is contained in:
sta 2016-06-03 16:17:42 +09:00
parent aec6123c19
commit 6c36b785c3

View File

@ -156,7 +156,7 @@ namespace WebSocketSharp.Net
var path = prefix.Path;
foreach (var pref in prefixes)
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);
}