Bug #2386 ยป 0096-emscripten-Avoid-non-zero-poll-timeout.patch
| 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) {
|
||