summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManikandan C <Manikandan.Chockalingam@in.bosch.com>2016-03-22 16:41:06 +0900
committerGernot Wirschal <gernot.wirschal@bmw.de>2016-04-28 13:00:49 +0200
commit3563d0c799fb24153dfa8ed3f425deb24d56274a (patch)
treeeba8d52bbbd03e7df12b55a17546fe4e5ff81b84
parent80efece166b72018bf72767231c0ec4a82c2246a (diff)
downloadDLT-daemon-3563d0c799fb24153dfa8ed3f425deb24d56274a.tar.gz
Fix connection handling of serial interface
Incremented client connections in case of serial connection also Signed-off-by: Manikandan C <Manikandan.Chockalingam@in.bosch.com> Change-Id: I3eb56ca67d46a7474cb750769c65c6548d40554f
-rw-r--r--src/daemon/dlt_daemon_event_handler.c4
1 files 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--;