mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 18:40:49 +00:00
(Network/Vita) Do not multiply negative timeout values (#14217)
This commit is contained in:
parent
262b0601e2
commit
97e3ef6ec7
@ -423,7 +423,10 @@ int socket_poll(struct pollfd *fds, unsigned nfds, int timeout)
|
|||||||
#undef ALLOC_EVENTS
|
#undef ALLOC_EVENTS
|
||||||
|
|
||||||
/* Vita's epoll takes a microsecond timeout parameter. */
|
/* Vita's epoll takes a microsecond timeout parameter. */
|
||||||
ret = sceNetEpollWait(epoll_fd, events, event_count, timeout * 1000);
|
if (timeout > 0)
|
||||||
|
timeout *= 1000;
|
||||||
|
|
||||||
|
ret = sceNetEpollWait(epoll_fd, events, event_count, timeout);
|
||||||
if (ret <= 0)
|
if (ret <= 0)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user