Skip to contentSkip to conversation

Fix: put viewer stream on send error

PATCH Jérémie Galarneau 1 participant 1 message Sep 5, 2015 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Squashed into "Fix: Relay daemon ownership and reference counting".

Thanks!
Jérémie

Quoted 24 lines · Mathieu Desnoyers
---
 src/bin/lttng-relayd/live.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/bin/lttng-relayd/live.c +1 -2
index bcc4045..a1fbbbe 100644
@@ -243,10 +243,10 @@ ssize_t send_viewer_streams(struct lttcomm_sock *sock,
                pthread_mutex_unlock(&vstream->stream->lock);
 
                ret = send_response(sock, &send_stream, sizeof(send_stream));
+               viewer_stream_put(vstream);
                if (ret < 0) {
                        goto end_unlock;
                }
-               viewer_stream_put(vstream);
        }
 
        ret = 0;
--

2.1.4

Signature · 8 lines
Jérémie Galarneau
EfficiOS Inc.
http://www.efficios.com

_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev