Do not try to poll when we've disconnected.

This commit is contained in:
Themaister 2011-02-13 21:19:20 +01:00
parent 466485e62e
commit 17ae0f72df

View File

@ -272,6 +272,9 @@ bool netplay_is_port(netplay_t *handle, bool port, unsigned index)
bool netplay_poll(netplay_t *handle)
{
if (!handle->has_connection)
return false;
uint16_t state = 0;
snes_input_state_t cb = handle->cbs.state_cb;
for (int i = 0; i <= 11; i++)