mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-23 08:30:49 +00:00
Potential mod download timeout crash fix
This commit is contained in:
1 parent
1bee72a175
commit
529b7e2ae4
2 files changed
+7
-2
No files matched your search
+6
-1
@@ -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()) {
|
||||
|
||||
Reference in new issue
Block a user