Skip to content

Commit

Permalink
slight refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Dec 9, 2024
1 parent 14601af commit 1bc05c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/udx.c
Original file line number Diff line number Diff line change
Expand Up @@ -2462,11 +2462,12 @@ static void
set_stream_socket (udx_stream_t *stream, udx_socket_t *socket) {
if (stream->socket == socket) return; // just in case

if (stream->socket == NULL) {
udx_socket_t *prev = stream->socket;

if (prev == NULL) {
udx_t *udx = stream->udx;
udx__link_remove(udx->streams, stream);
} else {
udx_socket_t *prev = stream->socket;
udx__link_remove(prev->streams, stream);
}

Expand Down

0 comments on commit 1bc05c5

Please sign in to comment.