[Modify] Replace it

This commit is contained in:
sta 2016-11-03 17:47:25 +09:00
parent fe17a3bc04
commit 0c29a44664

View File

@ -919,7 +919,13 @@ namespace WebSocketSharp.Server
public void AddWebSocketService<TBehaviorWithNew> (string path)
where TBehaviorWithNew : WebSocketBehavior, new ()
{
AddWebSocketService<TBehaviorWithNew> (path, () => new TBehaviorWithNew ());
string msg;
if (!checkServicePath (path, out msg)) {
_logger.Error (msg);
return;
}
_services.Add<TBehaviorWithNew> (path, () => new TBehaviorWithNew ());
}
/// <summary>