mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Do not try to poll when we've disconnected.
This commit is contained in:
parent
466485e62e
commit
17ae0f72df
@ -272,6 +272,9 @@ bool netplay_is_port(netplay_t *handle, bool port, unsigned index)
|
|||||||
|
|
||||||
bool netplay_poll(netplay_t *handle)
|
bool netplay_poll(netplay_t *handle)
|
||||||
{
|
{
|
||||||
|
if (!handle->has_connection)
|
||||||
|
return false;
|
||||||
|
|
||||||
uint16_t state = 0;
|
uint16_t state = 0;
|
||||||
snes_input_state_t cb = handle->cbs.state_cb;
|
snes_input_state_t cb = handle->cbs.state_cb;
|
||||||
for (int i = 0; i <= 11; i++)
|
for (int i = 0; i <= 11; i++)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user