aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r--src/main/java/de/pixart/messenger/xmpp/XmppConnection.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
index 64fb6918b..b3aa46738 100644
--- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
+++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java
@@ -791,7 +791,11 @@ public class XmppConnection implements Runnable {
}
}
if (callback != null) {
- throw new StateChangingException(Account.State.TLS_ERROR);
+ try {
+ callback.onIqPacketReceived(account, packet);
+ } catch (StateChangingError error) {
+ throw new StateChangingException(error.state);
+ }
}
}
}
@@ -849,7 +853,7 @@ public class XmppConnection implements Runnable {
sslSocket.close();
} catch (final NoSuchAlgorithmException | KeyManagementException e1) {
Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": TLS certificate verification failed");
- throw new SecurityException();
+ throw new StateChangingException(Account.State.TLS_ERROR);
}
}