From 3563d0c799fb24153dfa8ed3f425deb24d56274a Mon Sep 17 00:00:00 2001 From: Manikandan C Date: Tue, 22 Mar 2016 16:41:06 +0900 Subject: Fix connection handling of serial interface Incremented client connections in case of serial connection also Signed-off-by: Manikandan C Change-Id: I3eb56ca67d46a7474cb750769c65c6548d40554f --- src/daemon/dlt_daemon_event_handler.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/daemon/dlt_daemon_event_handler.c b/src/daemon/dlt_daemon_event_handler.c index 5b5a8ac..b149ea6 100644 --- a/src/daemon/dlt_daemon_event_handler.c +++ b/src/daemon/dlt_daemon_event_handler.c @@ -313,7 +313,7 @@ int dlt_event_handler_register_connection(DltEventHandler *evhdl, return -1; } - if (connection->type == DLT_CONNECTION_CLIENT_MSG_TCP) + if ((connection->type == DLT_CONNECTION_CLIENT_MSG_TCP) || (connection->type == DLT_CONNECTION_CLIENT_MSG_SERIAL)) { daemon_local->client_connections++; } @@ -358,7 +358,7 @@ int dlt_event_handler_unregister_connection(DltEventHandler *evhdl, return -1; } - if (type == DLT_CONNECTION_CLIENT_MSG_TCP) + if ((type == DLT_CONNECTION_CLIENT_MSG_TCP) || (type == DLT_CONNECTION_CLIENT_MSG_SERIAL)) { daemon_local->client_connections--; -- cgit v1.2.1