fix typo that prevented TCP thread from shutting down properly

sometimes, i guess
This commit is contained in:
Lion Kortlepel 2021-07-11 20:00:31 +02:00
parent 96c93a6aa6
commit 2e112fc5f1
No known key found for this signature in database
GPG Key ID: 4322FF2B4C71259B

View File

@ -18,7 +18,7 @@ TNetwork::TNetwork(TServer& Server, TPPSMonitor& PPSMonitor, TResourceManager& R
}
});
Application::RegisterShutdownHandler([&] {
if (mUDPThread.joinable()) {
if (mTCPThread.joinable()) {
debug("shutting down TCPServer");
mShutdown = true;
mTCPThread.detach();