diff options
Diffstat (limited to 'tests/nt.c')
-rw-r--r-- | tests/nt.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,2 +1,2 @@ -/* This file is part of GNU Pies. +/* This file is part of GNU Pies testsuite. Copyright (C) 2019 Sergey Poznyakoff @@ -274,2 +274,6 @@ netcat (char const *urlstr) { + if (events & POLLIN) + netcat_stream_read (srv); + if (events & POLLOUT) + netcat_stream_write (srv); if (events & POLLHUP) @@ -279,6 +283,2 @@ netcat (char const *urlstr) } - else if (events & POLLIN) - netcat_stream_read (srv); - else if (events & POLLOUT) - netcat_stream_write (srv); } |