From 4ff069857b82298ba07f714ece9aefbca4aad93d Mon Sep 17 00:00:00 2001 From: Harald Wolff Date: Fri, 15 Mar 2019 15:35:35 +0100 Subject: [PATCH] WIP --- HTTPServer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTTPServer.cs b/HTTPServer.cs index d144d5f..80796ed 100644 --- a/HTTPServer.cs +++ b/HTTPServer.cs @@ -22,7 +22,7 @@ namespace ln.http public SessionCache SessionCache { get; set; } - public bool IsRunning => (currentListenerThreads.Count > 0) || (threadPool.NumThreads > 0); + public bool IsRunning => (currentListenerThreads.Count > 0) || (threadPool.CurrentPoolSize > 0); @@ -88,7 +88,7 @@ namespace ln.http tcpListener.Stop(); } - threadPool.NumThreads = 0; + threadPool.Close(); while (IsRunning) {