[Modify] Replace it
This commit is contained in:
		| @@ -1083,13 +1083,7 @@ namespace WebSocketSharp.Server | |||||||
|     public void AddWebSocketService<TBehaviorWithNew> (string path) |     public void AddWebSocketService<TBehaviorWithNew> (string path) | ||||||
|       where TBehaviorWithNew : WebSocketBehavior, new () |       where TBehaviorWithNew : WebSocketBehavior, new () | ||||||
|     { |     { | ||||||
|       string msg; |       _services.AddService<TBehaviorWithNew> (path, null); | ||||||
|       if (!checkServicePath (path, out msg)) { |  | ||||||
|         _log.Error (msg); |  | ||||||
|         return; |  | ||||||
|       } |  | ||||||
|  |  | ||||||
|       _services.Add<TBehaviorWithNew> (path, () => new TBehaviorWithNew ()); |  | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     /// <summary> |     /// <summary> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user