mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
[filetransfer] Set the status to error in setException()
FileTransfer would previously not change the status, even though an exception has been set, leading users to believe that the transfer is still ongoing, when it is not.
This commit is contained in:
parent
c564c89c40
commit
2779187d8c
1 changed files with 4 additions and 0 deletions
|
@ -183,6 +183,10 @@ public abstract class FileTransfer {
|
||||||
|
|
||||||
protected void setException(Exception exception) {
|
protected void setException(Exception exception) {
|
||||||
this.exception = exception;
|
this.exception = exception;
|
||||||
|
Status currentStatus = getStatus();
|
||||||
|
if (currentStatus != Status.error) {
|
||||||
|
updateStatus(currentStatus, Status.error);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void setStatus(Status status) {
|
protected void setStatus(Status status) {
|
||||||
|
|
Loading…
Reference in a new issue