diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/dlt_daemon_socket.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/daemon/dlt_daemon_socket.c b/src/daemon/dlt_daemon_socket.c index 098537f..d54cd3f 100644 --- a/src/daemon/dlt_daemon_socket.c +++ b/src/daemon/dlt_daemon_socket.c @@ -191,8 +191,12 @@ int dlt_daemon_socket_sendreliable(int sock, void* buffer,int message_size) return DLT_DAEMON_ERROR_SEND_FAILED; } } - data_sent += ret; + else + { + data_sent += ret; + } } + return DLT_DAEMON_ERROR_OK; } |