Modified WebSocketSessionManager.cs and WebSocketServiceHostManager.cs (Modified parameter order of some methods. e.g. SendTo (data, id) -> SendTo (id, data))

This commit is contained in:
sta
2013-10-10 16:38:41 +09:00
parent d6f21d31cd
commit f6517fa567
6 changed files with 1019 additions and 582 deletions

View File

@@ -227,7 +227,7 @@ namespace WebSocketSharp.Server
var path = context.Path;
IWebSocketServiceHost host;
if (!_serviceHosts.TryGetServiceHostInternally (path, out host))
if (path == null || !_serviceHosts.TryGetServiceHostInternally (path, out host))
{
websocket.Close (HttpStatusCode.NotImplemented);
return;