Skip to content

Commit

Permalink
Nintendo Switch fix
Browse files Browse the repository at this point in the history
  • Loading branch information
XITRIX committed Jun 13, 2021
1 parent ee76386 commit b51eb0d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ControlStream.c
Expand Up @@ -711,8 +711,12 @@ static void controlReceiveThreadFunc(void* context) {
}
else {
// No events ready - wait for readability or a local RTO timer to expire
#if defined(__SWITCH__)
PltSleepMsInterruptible(&controlReceiveThread, 10);
#else
enet_uint32 condition = ENET_SOCKET_WAIT_RECEIVE;
enet_socket_wait(client->socket, &condition, waitTimeMs);
#endif
continue;
}
}
Expand Down

0 comments on commit b51eb0d

Please sign in to comment.