fix potential problem with blocking

This commit is contained in:
Arisotura 2023-09-15 13:27:48 +02:00
parent a430821ad9
commit 40c0ff418c
1 changed files with 2 additions and 0 deletions

View File

@ -1067,6 +1067,8 @@ void Process(bool block)
{ {
if (!Host) return; if (!Host) return;
if (!RXQueue.empty()) block = false;
int timeout = block ? MPRecvTimeout : 0; int timeout = block ? MPRecvTimeout : 0;
u32 time_last = SDL_GetTicks(); u32 time_last = SDL_GetTicks();