From df57c468df1f7f2e2f38f3db3c087cc4ca56fed1 Mon Sep 17 00:00:00 2001 From: Frederic Berat Date: Thu, 3 Dec 2015 13:22:26 +0100 Subject: dlt-daemon: Connection activation rework The activation of the connection is now centralized in one common function. Signed-off-by: Frederic Berat Change-Id: I86703eab411088905a85f526d5102875e2c92b7e --- src/gateway/dlt_gateway.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src/gateway/dlt_gateway.c') diff --git a/src/gateway/dlt_gateway.c b/src/gateway/dlt_gateway.c index 89e97a5..c88d35e 100644 --- a/src/gateway/dlt_gateway.c +++ b/src/gateway/dlt_gateway.c @@ -793,8 +793,7 @@ int dlt_gateway_process_passive_node_messages(DltDaemon *daemon, con->status = DLT_GATEWAY_DISCONNECTED; if (dlt_event_handler_unregister_connection(&daemon_local->pEvent, daemon_local, - receiver->fd, - DLT_CONNECTION_GATEWAY) != 0) + receiver->fd) != 0) { dlt_log(LOG_ERR, "Remove passive node Connection failed\n"); } @@ -854,8 +853,7 @@ int dlt_gateway_process_passive_node_messages(DltDaemon *daemon, con->trigger = DLT_GATEWAY_DISABLED; if (dlt_event_handler_unregister_connection(&daemon_local->pEvent, daemon_local, - receiver->fd, - DLT_CONNECTION_GATEWAY) + receiver->fd) != 0) { dlt_log(LOG_ERR, "Remove passive node Connection failed\n"); @@ -1095,8 +1093,7 @@ int dlt_gateway_process_on_demand_request(DltGateway *gateway, con->status = DLT_GATEWAY_DISCONNECTED; if (dlt_event_handler_unregister_connection(&daemon_local->pEvent, daemon_local, - con->client.sock, - DLT_CONNECTION_GATEWAY) != 0) + con->client.sock) != 0) { dlt_log(LOG_ERR, "Remove passive node event handler connection failed\n"); -- cgit v1.2.1