Improved stability.

This commit is contained in:
genxium
2023-03-10 15:40:45 +08:00
parent b9beee549f
commit ea14ced958
5 changed files with 19 additions and 32 deletions

View File

@@ -372,7 +372,7 @@ bool DelayNoMore::UdpSession::pollUdpRecvRingBuff() {
// This function is called by GameThread 60 fps.
//uv_mutex_lock(&recvRingBuffLock);
while (true) {
while (true && NULL != recvLoop) {
RecvWork f;
bool res = recvRingBuff->pop(&f);
if (!res) {