aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-12-23 00:02:43 +0100
committerfiaxh <fiaxh@users.noreply.github.com>2021-12-30 16:26:53 +0100
commit9072f155566a542635aede1fcb07208e0c56fb18 (patch)
tree8b92212666b2bcf6f866a7717b940a1250aa16ef /xmpp-vala
parent795af2d9cec6c730cdb41bb3fb5449e2b50dbe52 (diff)
downloaddino-9072f155566a542635aede1fcb07208e0c56fb18.tar.gz
dino-9072f155566a542635aede1fcb07208e0c56fb18.zip
Forget previous session on failed stream resumption (#1164)
Assuming received_features_node() is what triggers another attempt to authenticate, this should prevent an attempt to XEP-0198 resume again using the same session id.
Diffstat (limited to 'xmpp-vala')
-rw-r--r--xmpp-vala/src/module/xep/0198_stream_management.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0198_stream_management.vala b/xmpp-vala/src/module/xep/0198_stream_management.vala
index e053f3fb..10709d18 100644
--- a/xmpp-vala/src/module/xep/0198_stream_management.vala
+++ b/xmpp-vala/src/module/xep/0198_stream_management.vala
@@ -151,13 +151,13 @@ public class Module : XmppStreamNegotiationModule, WriteNodeFunc {
check_queue(stream);
((IoXmppStream)stream).write_obj = this;
} else if (node.name == "failed") {
- stream.received_features_node(stream);
session_id = null;
foreach (var id in in_flight_stanzas.keys) {
in_flight_stanzas[id].promise.set_exception(new IOStreamError.WRITE("Stanza not acked and session not resumed"));
}
in_flight_stanzas.clear();
check_queue(stream);
+ stream.received_features_node(stream);
}
}
}