From addcbb896a13ae0d0d9e6ddc1f3b7a085373623d Mon Sep 17 00:00:00 2001 From: Gregor Richards Date: Sun, 22 Jan 2017 10:43:09 -0500 Subject: [PATCH] Fixing an incompatibility between stateless mode and the password prompt Previously, the host would time out waiting for the guest to enter a password, as the timeout was not conditionalized on whether the guest was actually playing. This fixes that. --- network/netplay/netplay_frontend.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/network/netplay/netplay_frontend.c b/network/netplay/netplay_frontend.c index c010d30b20..ec0266bf52 100644 --- a/network/netplay/netplay_frontend.c +++ b/network/netplay/netplay_frontend.c @@ -177,7 +177,9 @@ static bool netplay_poll(void) /* Read Netplay input, block if we're configured to stall for input every * frame */ + netplay_update_unread_ptr(netplay_data); if (netplay_data->stateless_mode && + netplay_data->connected_players && netplay_data->unread_frame_count <= netplay_data->self_frame_count) res = netplay_poll_net_input(netplay_data, true); else