1
0
mirror of https://github.com/libretro/RetroArch synced 2025-04-01 13:20:43 +00:00

Reinstituted "standard" timeout-based disconnection, which only works

for stall_frames==0 due to the fixes to not stall the UI.
This commit is contained in:
Gregor Richards 2016-09-13 17:08:59 -04:00
parent 0ccc39769d
commit 8aa48cd3f9

@ -386,6 +386,9 @@ static int poll_input(netplay_t *netplay, bool block)
RARCH_LOG("Network is stalling at frame %u, count %u of %d ...\n", RARCH_LOG("Network is stalling at frame %u, count %u of %d ...\n",
netplay->self_frame_count, netplay->timeout_cnt, MAX_RETRIES); netplay->self_frame_count, netplay->timeout_cnt, MAX_RETRIES);
if (netplay->timeout_cnt >= MAX_RETRIES)
return -1;
} while (had_input || (block && (netplay->read_frame_count <= netplay->self_frame_count))); } while (had_input || (block && (netplay->read_frame_count <= netplay->self_frame_count)));
return 0; return 0;