summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/misc/skabus-dynteed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc/skabus-dynteed.c b/src/misc/skabus-dynteed.c
index 8b0e292..7eb69d8 100644
--- a/src/misc/skabus-dynteed.c
+++ b/src/misc/skabus-dynteed.c
@@ -233,7 +233,7 @@ int main (int argc, char const *const *argv, char const *const *envp)
for (unsigned int i = 0 ; i < numconn ; i++)
{
- if (x[clients[i].xindex].revents & (IOPAUSE_WRITE | IOPAUSE_EXCEPT))
+ if (x[clients[i].xindex].events & x[clients[i].xindex].revents & (IOPAUSE_WRITE | IOPAUSE_EXCEPT))
{
if (!bufalloc_flush(&clients[i].ba) && !error_isagain(errno))
{