diff --git a/src/tools/ebusctl.cpp b/src/tools/ebusctl.cpp index 8c1c3e20..d15d63a2 100755 --- a/src/tools/ebusctl.cpp +++ b/src/tools/ebusctl.cpp @@ -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; }