mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Factor out redundant code in download_data_store().
This commit is contained in:
parent
2a59f0f5bd
commit
cdda2f5acd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user