From c2d546491017ee226b7273ce1013dd0f9071d264 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Fri, 3 Feb 2006 10:44:29 +0100 Subject: [PATCH] NET: Minor tidyup --- src/network/connection.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/network/connection.c b/src/network/connection.c index eeb7f520..e79529b7 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();