HTTPServer: fix possible NullReference, fix Pool.Stop() call
parent
996d949096
commit
7bd7e4f8d6
|
@ -104,9 +104,10 @@ namespace ln.http
|
|||
}
|
||||
|
||||
foreach (HTTPServerConnection connection in HTTPServerConnection.CurrentConnections)
|
||||
connection.Abort();
|
||||
connection?.Abort();
|
||||
|
||||
threadPool.Stop(true);
|
||||
if (threadPool.State == PoolState.RUN)
|
||||
threadPool.Stop(true);
|
||||
}
|
||||
|
||||
private void AcceptConnections(TcpListener tcpListener)
|
||||
|
|
Loading…
Reference in New Issue