From 2f7026265f4e7888dcd731f84213f78da07e78b2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 11 May 2015 21:09:48 +0000 Subject: Fix handling of spurious polls. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5676 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/SocketListener.cpp | 6 +++--- 1 file 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) { -- cgit v1.2.1