mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-15 22:22:22 +01:00
Fail the connection if service is gone
(cherry picked from commit af8713a9f5fc925ae9aa74629d90b1390e58bb32)
This commit is contained in:
parent
c08a8d7b03
commit
3a865239b8
1 changed files with 6 additions and 0 deletions
|
@ -184,6 +184,12 @@ public class ConnectionService extends android.telecom.ConnectionService {
|
|||
String withJid = extras.getString("with");
|
||||
String sessionId = extras.getString("sessionId");
|
||||
|
||||
if (xmppConnectionService == null) {
|
||||
return Connection.createFailedConnection(
|
||||
new DisconnectCause(DisconnectCause.ERROR)
|
||||
);
|
||||
}
|
||||
|
||||
Account account = xmppConnectionService.findAccountByJid(Jid.of(accountJid));
|
||||
Jid with = Jid.of(withJid);
|
||||
|
||||
|
|
Loading…
Reference in a new issue