Skip to content

Commit 1963031

Browse files
committed
Update: Do not reuse connections if they reached an error state
1 parent b9a16b9 commit 1963031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ void client_destroy(client_t *client)
309309
avl_delete(global_client_list, client, NULL);
310310
avl_tree_unlock(global_client_list);
311311

312-
if (client->reuse != ICECAST_REUSE_CLOSE) {
312+
if (client->reuse != ICECAST_REUSE_CLOSE && !client->con->error) {
313313
/* only reuse the client if we reached the body's EOF. */
314314
if (client_body_eof(client) == 1) {
315315
client_reuseconnection(client);

0 commit comments

Comments
 (0)