summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/manager.c b/src/manager.c
index a39427b1f6..204a88e791 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -2192,6 +2192,9 @@ static int process_event(Manager *m, struct epoll_event *ev) {
assert(w = ev->data.ptr);
+ if (w->type == WATCH_INVALID)
+ return 0;
+
switch (w->type) {
case WATCH_SIGNAL: