mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-02-16 11:00:41 +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");
|
||||
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()) {
|
||||
auto Client = c.lock();
|
||||
|
||||
Reference in New Issue
Block a user