summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_event_handler.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/dlt_daemon_event_handler.c')
-rw-r--r--src/daemon/dlt_daemon_event_handler.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/daemon/dlt_daemon_event_handler.c b/src/daemon/dlt_daemon_event_handler.c
index 9ee3bc1..cfe61a4 100644
--- a/src/daemon/dlt_daemon_event_handler.c
+++ b/src/daemon/dlt_daemon_event_handler.c
@@ -137,6 +137,10 @@ int dlt_daemon_handle_event(DltEventHandler *pEvent,
type = con->type;
fd = con->receiver->fd;
}
+ else /* connection might have been destroyed in the meanwhile */
+ {
+ continue;
+ }
/* First of all handle epoll error events
* We only expect EPOLLIN or EPOLLOUT