Skip to content

Commit 5bcd42a

Browse files
authored
when one side of the relay dies, kill the other (#179)
1 parent 54a0cce commit 5bcd42a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/udx.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,10 @@ close_maybe (udx_stream_t *stream, int err) {
892892
for (uint32_t i = 0; i < relaying.size; i++) {
893893
udx_stream_t *stream = (udx_stream_t *) relaying.values[i];
894894

895-
if (stream) stream->relay_to = NULL;
895+
if (stream) {
896+
stream->relay_to = NULL;
897+
udx_stream_destroy(stream);
898+
}
896899
}
897900

898901
udx__cirbuf_destroy(&stream->relaying_streams);

0 commit comments

Comments
 (0)