aboutgitcodebugslistschat
diff options
context:
space:
mode:
-rw-r--r--tap.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tap.c b/tap.c
index 2cfd82b..2e603ed 100644
--- a/tap.c
+++ b/tap.c
@@ -1106,13 +1106,13 @@ void tap_handler(struct ctx *c, int fd, uint32_t events,
return;
}
- if (events & (EPOLLRDHUP | EPOLLHUP | EPOLLERR))
- goto reinit;
-
if ((c->mode == MODE_PASST && tap_handler_passt(c, now)) ||
(c->mode == MODE_PASTA && tap_handler_pasta(c, now)))
goto reinit;
+ if (events & (EPOLLRDHUP | EPOLLHUP | EPOLLERR))
+ goto reinit;
+
return;
reinit:
if (c->one_off) {