diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/SocketListener.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/SocketListener.cpp b/src/server/SocketListener.cpp index d09771a4..8eca2d60 100644 --- a/src/server/SocketListener.cpp +++ b/src/server/SocketListener.cpp @@ -89,11 +89,11 @@ SocketListener::ingen_listen(Engine* engine, if (ret == -1) { world->log().error(fmt("Poll error: %1%\n") % strerror(errno)); break; - } else if ((pfds[0].revents & POLLHUP) || pfds[1].revents & POLLHUP) { - break; } else if (ret == 0) { - world->log().error("Poll returned with no data\n"); + world->log().warn("Poll returned with no data\n"); continue; + } else if ((pfds[0].revents & POLLHUP) || pfds[1].revents & POLLHUP) { + break; } if (pfds[0].revents & POLLIN) { |