From 4f636dbd8e28237241232e1fe37fff37fbb43c6c Mon Sep 17 00:00:00 2001 From: fiaxh Date: Mon, 12 Oct 2020 18:23:15 +0200 Subject: [PATCH] Service Discovery Module: Clear cached disco info requests when detaching from stream If a info request did not receive a response in some stream (e.g. due to network errors), any requests to the same entity in subsequent streams waited indefinitively. --- xmpp-vala/src/module/xep/0030_service_discovery/module.vala | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmpp-vala/src/module/xep/0030_service_discovery/module.vala b/xmpp-vala/src/module/xep/0030_service_discovery/module.vala index 85fe2d50..42547f62 100644 --- a/xmpp-vala/src/module/xep/0030_service_discovery/module.vala +++ b/xmpp-vala/src/module/xep/0030_service_discovery/module.vala @@ -100,6 +100,8 @@ public class Module : XmppStreamModule, Iq.Handler { } public override void detach(XmppStream stream) { + active_info_requests.clear(); + remove_identity(stream, own_identity); stream.get_module(Iq.Module.IDENTITY).unregister_from_namespace(NS_URI_INFO, this);