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.
This commit is contained in:
Gregor Richards 2017-01-22 10:43:09 -05:00
parent c91a4fa12e
commit addcbb896a

View File

@ -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