From 887cf2c7bef5ae57bf46585d909750373a1de7ef Mon Sep 17 00:00:00 2001 From: Ben Adams Date: Thu, 10 Sep 2015 02:57:49 +0100 Subject: [PATCH] Negative thread count fix --- src/Microsoft.AspNet.Server.Kestrel/ServerFactory.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Microsoft.AspNet.Server.Kestrel/ServerFactory.cs b/src/Microsoft.AspNet.Server.Kestrel/ServerFactory.cs index 256b70c248..9f7ad6789b 100644 --- a/src/Microsoft.AspNet.Server.Kestrel/ServerFactory.cs +++ b/src/Microsoft.AspNet.Server.Kestrel/ServerFactory.cs @@ -55,7 +55,7 @@ namespace Microsoft.AspNet.Server.Kestrel disposables.Push(engine); - engine.Start(information.ThreadCount == 0 ? 1 : information.ThreadCount); + engine.Start(information.ThreadCount <= 0 ? 1 : information.ThreadCount); foreach (var address in information.Addresses) {