mirror of
https://github.com/libretro/mgba.git
synced 2024-11-23 16:10:01 +00:00
Util: Fix highest-fd socket not being returned by SocketAccept
This commit is contained in:
parent
af96097bb1
commit
b54a4ba555
1
CHANGES
1
CHANGES
@ -25,6 +25,7 @@ Bugfixes:
|
||||
- Util: Fix overflow when loading invalid UPS patches
|
||||
- Tools: Fix recurring multiple times over the same library
|
||||
- GBA I/O: Handle audio registers specially when deserializing
|
||||
- Util: Fix highest-fd socket not being returned by SocketAccept
|
||||
Misc:
|
||||
- SDL: Remove scancode key input
|
||||
- GBA Video: Clean up unused timers
|
||||
|
@ -293,10 +293,11 @@ static inline int SocketPoll(size_t nSockets, Socket* reads, Socket* writes, Soc
|
||||
errors[i] = INVALID_SOCKET;
|
||||
}
|
||||
}
|
||||
++maxFd;
|
||||
struct timeval tv;
|
||||
tv.tv_sec = timeoutMillis / 1000;
|
||||
tv.tv_usec = (timeoutMillis % 1000) * 1000;
|
||||
int result = select(maxFd + 1, &rset, &wset, &eset, timeoutMillis < 0 ? 0 : &tv);
|
||||
int result = select(maxFd, &rset, &wset, &eset, timeoutMillis < 0 ? 0 : &tv);
|
||||
int r = 0;
|
||||
int w = 0;
|
||||
int e = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user