Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit b6fe381f authored by Deucе's avatar Deucе 👌🏾

Fix console and connect events when using select()

parent baa72abe
Pipeline #2274 passed with stage
in 8 minutes and 11 seconds
......@@ -1330,7 +1330,7 @@ js_handle_events(JSContext *cx, js_callback_t *cb, volatile int *terminated)
#ifdef PREFER_POLL
if (fds[cfd].revents & ~(POLLOUT | POLLWRNORM | POLLWRBAND)) {
#else
if (FD_ISSET(ev->data.connect.sv[0], &wfds)) {
if (FD_ISSET(ev->data.connect.sv[0], &rfds)) {
#endif
closesocket(ev->data.connect.sv[0]);
break;
......@@ -1343,7 +1343,7 @@ js_handle_events(JSContext *cx, js_callback_t *cb, volatile int *terminated)
#ifdef PREFER_POLL
if (fds[cfd].revents & ~(POLLOUT | POLLWRNORM | POLLWRBAND)) {
#else
if (FD_ISSET(ev->data.sock, &wfds)) {
if (FD_ISSET(ev->data.sock, &rfds)) {
#endif
break;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment