Project

General

Profile

Bug #2386 ยป 0096-emscripten-Avoid-non-zero-poll-timeout.patch

Marko Lindqvist, 10/26/2026 01:49 AM

View differences:

client/gui-sdl2/gui_main.c
}
tv.tv_sec = 0;
#ifdef __EMSCRIPTEN__
tv.tv_usec = 0;
#else
tv.tv_usec = 10000; /* 10ms*/
#endif
result = fc_select(net_socket + 1, &civfdset, NULL, NULL, &tv);
if (result < 0) {
client/gui-sdl3/gui_main.c
}
tv.tv_sec = 0;
#ifdef __EMSCRIPTEN__
tv.tv_usec = 0;
#else
tv.tv_usec = 10000; /* 10ms*/
#endif
result = fc_select(net_socket + 1, &civfdset, NULL, NULL, &tv);
if (result < 0) {
    (1-1/1)