diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-08-13 22:11:14 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-08-13 22:11:14 +0200 |
commit | 9b981ab38b114d92eb806a50b94248e62af3fffa (patch) | |
tree | a6c3ea13a169b0e1385cdb051281a417f3a13e7b /src/main/java/de/pixart/messenger/xmpp | |
parent | 0e12e53ccf299d5262ff93ac464c2b05ca08975f (diff) |
provide extra 'network is unreachable' account state
Diffstat (limited to 'src/main/java/de/pixart/messenger/xmpp')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index 24510b038..378cd78aa 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -448,6 +448,8 @@ public class XmppConnection implements Runnable { this.changeStatus(Account.State.MISSING_INTERNET_PERMISSION); } catch (final StateChangingException e) { this.changeStatus(e.state); + } catch (final Resolver.NetworkIsUnreachableException e) { + this.changeStatus(Account.State.NETWORK_IS_UNREACHABLE); } catch (final UnknownHostException | ConnectException e) { this.changeStatus(Account.State.SERVER_NOT_FOUND); } catch (final SocksSocketFactory.SocksProxyNotFoundException e) { |