mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-24 00:46:59 +00:00
break if TCPRcv fails
This commit is contained in:
@@ -496,7 +496,12 @@ void TNetwork::TCPClient(const std::weak_ptr<TClient>& c) {
|
|||||||
debug("client status < 0, breaking client loop");
|
debug("client status < 0, breaking client loop");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
TServer::GlobalParser(c, TCPRcv(*Client), mPPSMonitor, *this);
|
auto res = TCPRcv(*Client);
|
||||||
|
if (res == "") {
|
||||||
|
debug("TCPRcv error, break client loop");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
TServer::GlobalParser(c, res, mPPSMonitor, *this);
|
||||||
}
|
}
|
||||||
if (!c.expired()) {
|
if (!c.expired()) {
|
||||||
auto Client = c.lock();
|
auto Client = c.lock();
|
||||||
|
|||||||
Reference in New Issue
Block a user