From 40c0ff418c106f3e0817f9d1ed3ac0e32ba0e3ec Mon Sep 17 00:00:00 2001 From: Arisotura Date: Fri, 15 Sep 2023 13:27:48 +0200 Subject: [PATCH] fix potential problem with blocking --- src/frontend/qt_sdl/LAN.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/frontend/qt_sdl/LAN.cpp b/src/frontend/qt_sdl/LAN.cpp index 07b2dd80..cf624fe8 100644 --- a/src/frontend/qt_sdl/LAN.cpp +++ b/src/frontend/qt_sdl/LAN.cpp @@ -1067,6 +1067,8 @@ void Process(bool block) { if (!Host) return; + if (!RXQueue.empty()) block = false; + int timeout = block ? MPRecvTimeout : 0; u32 time_last = SDL_GetTicks();