mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-26 01:09:13 -05:00
always force close a connection when disabling from error state
This commit is contained in:
parent
1e59a9517a
commit
a87f7903c6
@ -341,6 +341,10 @@ public class Account extends AbstractEntity {
|
||||
}
|
||||
}
|
||||
|
||||
public State getTrueStatus() {
|
||||
return this.status;
|
||||
}
|
||||
|
||||
public void setStatus(final State status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
@ -2909,7 +2909,7 @@ public class XmppConnectionService extends Service {
|
||||
thread.start();
|
||||
scheduleWakeUpCall(Config.CONNECT_DISCO_TIMEOUT, account.getUuid().hashCode());
|
||||
} else {
|
||||
disconnect(account, force);
|
||||
disconnect(account, force || account.getTrueStatus().isError());
|
||||
account.getRoster().clearPresences();
|
||||
connection.resetEverything();
|
||||
account.getAxolotlService().resetBrokenness();
|
||||
|
Loading…
Reference in New Issue
Block a user