From f5b7fbc441d5d345841ee6669ab3c6509ddf551e Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Fri, 30 Dec 2022 09:00:42 +0100 Subject: [PATCH] =?UTF-8?q?add=20log=20when=20we=20requested=20token=20but?= =?UTF-8?q?=20didn=E2=80=99t=20get=20one?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eu/siacs/conversations/xmpp/XmppConnection.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java index 407aa7eabd682d1afd5e06ab2bbfe0631b35c176..09df8a3a3866f7ce24c0ee7547aa23716a1243a2 100644 --- a/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java +++ b/src/main/java/eu/siacs/conversations/xmpp/XmppConnection.java @@ -810,8 +810,16 @@ public class XmppConnection implements Runnable { tokenMechanism = null; } if (tokenMechanism != null && !Strings.isNullOrEmpty(token)) { - this.account.setFastToken(tokenMechanism,token); - Log.d(Config.LOGTAG,account.getJid().asBareJid()+": storing hashed token "+tokenMechanism); + this.account.setFastToken(tokenMechanism, token); + Log.d( + Config.LOGTAG, + account.getJid().asBareJid() + ": storing hashed token " + tokenMechanism); + } else if (this.hashTokenRequest != null) { + Log.w( + Config.LOGTAG, + account.getJid().asBareJid() + + ": no response to our hashed token request " + + this.hashTokenRequest); } // a successful resume will not send stream features if (processNopStreamFeatures) {