summaryrefslogtreecommitdiff
path: root/src/daemon/dlt_daemon_client.c
diff options
context:
space:
mode:
authorRalphNiemeyer <rniemeyer@de.adit-jv.com>2017-03-23 09:58:59 +0100
committerGitHub <noreply@github.com>2017-03-23 09:58:59 +0100
commit49d5962d3960eabc989796d4e3236a55c14618e6 (patch)
treea61dd79be59d2346be0c3614ed1f062f1ca147e2 /src/daemon/dlt_daemon_client.c
parenta961dba0013ed2119aa719546c63212459753549 (diff)
parent0ce6e68d8835b13aa6be52ffdf2d81e1170a3834 (diff)
downloadDLT-daemon-49d5962d3960eabc989796d4e3236a55c14618e6.tar.gz
Merge pull request #5 from clipka/devel_connection_handling_fixes
Daemon connection handling fixes
Diffstat (limited to 'src/daemon/dlt_daemon_client.c')
-rw-r--r--src/daemon/dlt_daemon_client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_client.c b/src/daemon/dlt_daemon_client.c
index e605bd5..84ffd5d 100644
--- a/src/daemon/dlt_daemon_client.c
+++ b/src/daemon/dlt_daemon_client.c
@@ -133,6 +133,8 @@ static int dlt_daemon_client_send_all_multiple(DltDaemon *daemon,
{
int ret = 0;
DLT_DAEMON_SEM_LOCK();
+ DltConnection *next = dlt_connection_get_next(temp->next, type_mask);
+
ret = dlt_connection_send_multiple(temp,
data1,
size1,
@@ -166,7 +168,7 @@ static int dlt_daemon_client_send_all_multiple(DltDaemon *daemon,
sent = 1;
}
- temp = dlt_connection_get_next(temp->next, type_mask);
+ temp = next;
} /* for */
return sent;