Support for delay_frames=0 in nonblocking mode.

This commit is contained in:
Gregor Richards 2016-12-03 15:25:37 -05:00
parent 1c8f056239
commit 71e5cb756a

View File

@ -333,14 +333,6 @@ static void netplay_handshake_ready(netplay_t *netplay)
{ {
netplay->force_send_savestate = true; netplay->force_send_savestate = true;
} }
else
{
/* FIXME: Still correct? */
/* Because the first frame isn't serialized, we're actually at
* frame 1 */
netplay->self_ptr = NEXT_PTR(netplay->self_ptr);
netplay->self_frame_count = 1;
}
} }
else else
{ {
@ -351,6 +343,10 @@ static void netplay_handshake_ready(netplay_t *netplay)
runloop_msg_queue_push(msg, 1, 180, false); runloop_msg_queue_push(msg, 1, 180, false);
} }
/* Unstall if we were waiting for this */
if (netplay->stall == RARCH_NETPLAY_STALL_NO_CONNECTION)
netplay->stall = 0;
netplay->status = RARCH_NETPLAY_CONNECTION_PLAYING; netplay->status = RARCH_NETPLAY_CONNECTION_PLAYING;
} }