module/i3-common: being disconnected is usually not an error

This commit is contained in:
Daniel Eklöf 2019-02-15 20:57:31 +01:00
parent fce37e86e4
commit e36ba56caf

View file

@ -142,11 +142,13 @@ i3_receive_loop(int abort_fd, int sock,
break; break;
} }
if (fds[0].revents & POLLIN) if (fds[0].revents & POLLIN) {
LOG_DBG("aborted");
break; break;
}
if (fds[1].revents & POLLHUP) { if (fds[1].revents & POLLHUP) {
LOG_WARN("disconnected"); LOG_DBG("disconnected");
break; break;
} }