From cdda2f5acda2b590376ee6e70a98f3d5bc5b4b4f Mon Sep 17 00:00:00 2001 From: Laurent MONIN Date: Wed, 7 Nov 2007 12:08:36 +0100 Subject: [PATCH] Factor out redundant code in download_data_store(). --- src/session/download.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/session/download.c b/src/session/download.c index a2ae977da..ece831c7e 100644 --- a/src/session/download.c +++ b/src/session/download.c @@ -380,15 +380,13 @@ download_data_store(struct download *download, struct file_download *file_downlo read_from_popen(file_download->ses, file_download->external_handler, file_download->file); - file_download->delete = 0; - abort_download_and_beep(file_download, term); } else { exec_on_terminal(term, file_download->external_handler, file_download->file, file_download->block ? TERM_EXEC_FG : TERM_EXEC_BG); - file_download->delete = 0; - abort_download_and_beep(file_download, term); } + file_download->delete = 0; + abort_download_and_beep(file_download, term); return; }