mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-04-18 12:48:39 +02: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) {
|
||||
this.exception = exception;
|
||||
Status currentStatus = getStatus();
|
||||
if (currentStatus != Status.error) {
|
||||
updateStatus(currentStatus, Status.error);
|
||||
}
|
||||
}
|
||||
|
||||
protected void setStatus(Status status) {
|
||||
|
|
Loading…
Add table
Reference in a new issue