mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-16 06:32:22 +01:00
Be sure to call callback even on failure
(cherry picked from commit 227cfce215b9277f6762333b4021946f1ba4f2b4)
This commit is contained in:
parent
09b48e9416
commit
bda283fa85
1 changed files with 2 additions and 1 deletions
|
@ -398,7 +398,6 @@ public class HttpDownloadConnection implements Transferable {
|
|||
decryptIfNeeded();
|
||||
finish();
|
||||
updateImageBounds();
|
||||
if (cb != null) cb.accept(file);
|
||||
} catch (final SSLHandshakeException e) {
|
||||
changeStatus(STATUS_OFFER);
|
||||
} catch (final Exception e) {
|
||||
|
@ -410,6 +409,8 @@ public class HttpDownloadConnection implements Transferable {
|
|||
HttpDownloadConnection.this.mXmppConnectionService.getNotificationService().push(message);
|
||||
}
|
||||
cancel();
|
||||
} finally {
|
||||
if (cb != null) cb.accept(file);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue