mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
chore(net): missed another pair of FD_SET and FD_ISSET macros
This commit is contained in:
parent
bca4f0bbeb
commit
40b4717a0d
1 changed files with 2 additions and 2 deletions
|
|
@ -56,7 +56,7 @@ void WowConnectionNet::PlatformRun() {
|
||||||
fd_set errorFds;
|
fd_set errorFds;
|
||||||
FD_ZERO(&errorFds);
|
FD_ZERO(&errorFds);
|
||||||
|
|
||||||
readFds.fds_bits[s_workerPipe[0] >> 5] |= 1 << (s_workerPipe[0] & 0x1F);
|
FD_SET(s_workerPipe[0], &readFds);
|
||||||
|
|
||||||
auto fdCount = s_workerPipe[0];
|
auto fdCount = s_workerPipe[0];
|
||||||
|
|
||||||
|
|
@ -132,7 +132,7 @@ void WowConnectionNet::PlatformRun() {
|
||||||
select(fdCount + 1, &readFds, &writeFds, &errorFds, &timeout);
|
select(fdCount + 1, &readFds, &writeFds, &errorFds, &timeout);
|
||||||
|
|
||||||
auto v1 = s_workerPipe[0];
|
auto v1 = s_workerPipe[0];
|
||||||
if (((1 << (s_workerPipe[0] & 0x1F)) & readFds.fds_bits[s_workerPipe[0] >> 5]) != 0) {
|
if (FD_ISSET(s_workerPipe[0], &readFds)) {
|
||||||
while (read(v1, buf, 1u) > 0) {
|
while (read(v1, buf, 1u) > 0) {
|
||||||
v1 = s_workerPipe[0];
|
v1 = s_workerPipe[0];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue