diff --git a/src/network/connection.c b/src/network/connection.c index eeb7f5201..e79529b70 100644 --- a/src/network/connection.c +++ b/src/network/connection.c @@ -1002,8 +1002,9 @@ change_connection(struct download *old, struct download *new, if (new) { add_to_list(conn->downloads, new); - } else if (conn->detached || interrupt) { - abort_connection(conn, S_INTERRUPTED); + } else { + if (conn->detached || interrupt) + abort_connection(conn, S_INTERRUPTED); } sort_queue();