Merge branch 'benaadams/negative-threads' into dev
This commit is contained in:
commit
813127e7f6
|
|
@ -55,6 +55,13 @@ namespace Microsoft.AspNet.Server.Kestrel
|
||||||
|
|
||||||
disposables.Push(engine);
|
disposables.Push(engine);
|
||||||
|
|
||||||
|
if (information.ThreadCount < 0)
|
||||||
|
{
|
||||||
|
throw new ArgumentOutOfRangeException(nameof(information.ThreadCount),
|
||||||
|
information.ThreadCount,
|
||||||
|
"ThreadCount cannot be negative");
|
||||||
|
}
|
||||||
|
|
||||||
engine.Start(information.ThreadCount == 0 ? 1 : information.ThreadCount);
|
engine.Start(information.ThreadCount == 0 ? 1 : information.ThreadCount);
|
||||||
|
|
||||||
foreach (var address in information.Addresses)
|
foreach (var address in information.Addresses)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue