fix previous commit

This commit is contained in:
John
2021-11-13 13:23:04 +01:00
parent 4b9beb3949
commit bf811f60a1
+1 -1
View File
@@ -177,7 +177,7 @@ string fetchData(ebusd::TCPSocket* socket, bool listening, uint16_t timeout) {
#ifdef HAVE_PPOLL
// wait for new fd event
ret = ppoll(fds, nfds, &tdiff, nullptr);
if (ret < 0 || (fds[0].revents & (POLLIN | POLLERR | POLLHUP | POLLRDHUP))
if (ret < 0 || (fds[0].revents & (POLLERR | POLLHUP | POLLRDHUP))
|| (fds[1].revents & (POLLERR | POLLHUP | POLLRDHUP))) {
break;
}