diff options
Diffstat (limited to 'src/socket.c')
-rw-r--r-- | src/socket.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c index 4647d3174e..ef7674f463 100644 --- a/src/socket.c +++ b/src/socket.c @@ -1189,6 +1189,9 @@ static void socket_fd_event(Unit *u, int fd, uint32_t events, Watch *w) { assert(s); assert(fd >= 0); + if (s->state != SOCKET_LISTENING) + return; + log_debug("Incoming traffic on %s", u->meta.id); if (events != EPOLLIN) { |