master
Harald Wolff 2019-03-15 15:35:35 +01:00
parent 9aec7590b7
commit 4ff069857b
1 changed files with 2 additions and 2 deletions

View File

@ -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)
{