summaryrefslogtreecommitdiffstats
path: root/test/socket_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/socket_test.cpp')
-rw-r--r--test/socket_test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/socket_test.cpp b/test/socket_test.cpp
index 0a7a75c..bf0fd33 100644
--- a/test/socket_test.cpp
+++ b/test/socket_test.cpp
@@ -63,7 +63,9 @@ main()
if ((pfds[0].revents & POLLHUP) || pfds[1].revents & POLLHUP) {
break;
- } else if (ret == 0) {
+ }
+
+ if (ret == 0) {
fprintf(stderr, "poll returned with no data\n");
continue;
}