diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-07-15 22:05:02 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-07-15 22:10:29 +0200 |
commit | 7927ee014cf76278cae1a833be64d21968d4439b (patch) | |
tree | 58e8be01ecfde7dc252a1d602f6e3116697074f9 /src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | |
parent | 239921139bbf89d2235484a53740612e39603891 (diff) |
fix bug in XmppConnection
Diffstat (limited to 'src/main/java/de/pixart/messenger/xmpp/XmppConnection.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/xmpp/XmppConnection.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java index 2a223b259..74577cfde 100644 --- a/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java +++ b/src/main/java/de/pixart/messenger/xmpp/XmppConnection.java @@ -213,8 +213,7 @@ public class XmppConnection implements Runnable { protected void changeStatus(final Account.State nextStatus) { synchronized (this) { - this.mThread = Thread.currentThread(); - if (this.mThread.isInterrupted()) { + if (Thread.currentThread().isInterrupted()) { Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": not changing status to " + nextStatus + " because thread was interrupted"); return; } @@ -505,7 +504,8 @@ public class XmppConnection implements Runnable { @Override public void run() { synchronized (this) { - if (Thread.currentThread().isInterrupted()) { + this.mThread = Thread.currentThread(); + if (this.mThread.isInterrupted()) { Log.d(Config.LOGTAG, account.getJid().asBareJid() + ": aborting connect because thread was interrupted"); return; } |