diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/dlt_daemon_event_handler.c | 4 |
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--; |