chiark / gitweb /
timer: fully implement timer units
[elogind.git] / src / socket.c
index 4647d3174e47a0900e57f30e21470ccc63064a22..ef7674f46386fae40a3093316ae51a105ec1f382 100644 (file)
@@ -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) {