diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-03-06 15:11:56 +0100 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-03-06 15:11:56 +0100 |
commit | 4edd623a1e71d7d2c7a3e0bd4cad7cabeb9a0268 (patch) | |
tree | 36002509b3e899acaf648d1a0dbc7bcd5301fdce /src/eu/siacs/conversations/services | |
parent | a73cc24c3f00b1e5f2fd5dc8237d8d4c699dd676 (diff) |
more details connection error messages
Diffstat (limited to 'src/eu/siacs/conversations/services')
-rw-r--r-- | src/eu/siacs/conversations/services/XmppConnectionService.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/services/XmppConnectionService.java b/src/eu/siacs/conversations/services/XmppConnectionService.java index 143d3079..3ba5c5e3 100644 --- a/src/eu/siacs/conversations/services/XmppConnectionService.java +++ b/src/eu/siacs/conversations/services/XmppConnectionService.java @@ -819,7 +819,11 @@ public class XmppConnectionService extends Service { disconnect(account); } if (!account.isOptionSet(Account.OPTION_DISABLED)) { - account.setXmppConnection(this.createConnection(account)); + if (account.getXmppConnection()==null) { + account.setXmppConnection(this.createConnection(account)); + } + Thread thread = new Thread(account.getXmppConnection()); + thread.start(); } if (accountChangedListener != null) accountChangedListener.onAccountListChangedListener(); |