summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_connection.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/dlt_daemon_connection.c')
-rw-r--r--src/daemon/dlt_daemon_connection.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/daemon/dlt_daemon_connection.c b/src/daemon/dlt_daemon_connection.c
index 456a075..b1a4080 100644
--- a/src/daemon/dlt_daemon_connection.c
+++ b/src/daemon/dlt_daemon_connection.c
@@ -340,9 +340,6 @@ void dlt_connection_destroy(DltConnection *to_destroy)
to_destroy->id = 0;
close(to_destroy->receiver->fd);
dlt_connection_destroy_receiver(to_destroy);
- /* connection pointer might be in poll queue and used even after destroying
- * it. To make sure it is not used anymore, connection type is invalidated */
- to_destroy->type = DLT_CONNECTION_TYPE_MAX;
free(to_destroy);
}