Potential mod download timeout crash fix

This commit is contained in:
Anonymous-275 committed 2021-04-25 19:09:08 +03:00
1 parent 1bee72a175
commit 529b7e2ae4
2 files changed
+7 -2

No files matched your search

+6 -1
View File
@@ -484,7 +484,12 @@ void TNetwork::ClientKick(TClient& c, const std::string& R) {
// TODO handle
}
c.SetStatus(-2);
CloseSocketProper(c.GetTCPSock());
if (c.GetTCPSock())
CloseSocketProper(c.GetTCPSock());
if (c.GetDownSock())
CloseSocketProper(c.GetDownSock());
}
void TNetwork::Looper(const std::weak_ptr<TClient>& c) {
while (!c.expired()) {