Don't check is_in_progress_state before calling cancel_download
commitdaad05c055aa750e38e5a1f910b594a35815c09a
authorMiciah Dashiel Butler Masters <miciah@myrealbox.com>
Sun, 12 Feb 2006 15:41:21 +0000 (12 15:41 +0000)
committerMiciah Dashiel Butler Masters <miciah@FroodyComp.localdomain>
Sun, 12 Feb 2006 15:41:21 +0000 (12 15:41 +0000)
tree84195265b45d4056045255b025ad6ffe45e85b49
parent2c087e52e74528a720621186b91880463e039d50
Don't check is_in_progress_state before calling cancel_download

With commit 637f1e82e6eedb44b6300e80e0fe04bf4021df60 ('NET: Merge
change_connection into cancel_download'), cancel_download returns
immediately if the connection is not in a result state, so save some
code by not checking is_in_progress_state before calling cancel_download.
src/protocol/bittorrent/common.c
src/session/download.c
src/session/session.c
src/viewer/dump/dump.c