aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart/messenger
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-05-12 20:31:13 +0200
committerChristian Schneppe <christian@pix-art.de>2017-05-12 20:31:13 +0200
commitf6ad884c02bd5c76f965a05fd41ed7cc3ec38600 (patch)
treed30f4418e32cb08640dfb6dfd0f0d3129d8d0c47 /src/main/java/de/pixart/messenger
parent0494b7bae77ffb6398301be25ffbeb1466ce9a42 (diff)
fixed missing lines in unified all account state exceptions
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);
}
}