We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d50af7 commit cd91484Copy full SHA for cd91484
packages/bun-usockets/src/eventing/epoll_kqueue.c
@@ -228,8 +228,8 @@ void us_loop_run(struct us_loop_t *loop) {
228
// > Instead, the filter will aggregate the events into a single kevent struct
229
// Note: EV_ERROR only sets the error in data as part of changelist. Not in this call!
230
int events = 0
231
- | ((filter & EVFILT_READ) ? LIBUS_SOCKET_READABLE : 0)
232
- | ((filter & EVFILT_WRITE) ? LIBUS_SOCKET_WRITABLE : 0);
+ | ((filter == EVFILT_READ) ? LIBUS_SOCKET_READABLE : 0)
+ | ((filter == EVFILT_WRITE) ? LIBUS_SOCKET_WRITABLE : 0);
233
const int error = (flags & (EV_ERROR)) ? ((int)fflags || 1) : 0;
234
const int eof = (flags & (EV_EOF));
235
#endif
0 commit comments