mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +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
|
||||
|
||||
/* 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)
|
||||
goto done;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user