From d7f817871b018559179fc924e80e6aca1e0ba052 Mon Sep 17 00:00:00 2001 From: James Thomas Date: Fri, 27 Sep 2024 09:42:27 -0400 Subject: [PATCH] end bug --- src/udx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udx.c b/src/udx.c index 1d752d2..d971611 100644 --- a/src/udx.c +++ b/src/udx.c @@ -1582,7 +1582,7 @@ send_stream_packets (udx_socket_t *socket, udx_stream_t *stream) { stream->write_wanted &= ~UDX_STREAM_WRITE_WANT_STATE; - if (stream->status & UDX_STREAM_ALL_ENDED) { + if ((stream->status & UDX_STREAM_ALL_ENDED) == UDX_STREAM_ALL_ENDED) { assert(stream->retransmit_queue.len == 0); assert(stream->write_queue.len == 0); close_stream(stream, 0);