From 7c4260eed718961874fc0ea665263ea2ce59338b Mon Sep 17 00:00:00 2001 From: fiaxh Date: Tue, 21 Apr 2020 16:25:21 +0200 Subject: Remove features from service discovery module when detaching module from stream fixes #179 fixes #812 --- xmpp-vala/src/module/xep/0391_jingle_encrypted_transports.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmpp-vala/src/module/xep/0391_jingle_encrypted_transports.vala') diff --git a/xmpp-vala/src/module/xep/0391_jingle_encrypted_transports.vala b/xmpp-vala/src/module/xep/0391_jingle_encrypted_transports.vala index a6827bf3..1161ec96 100644 --- a/xmpp-vala/src/module/xep/0391_jingle_encrypted_transports.vala +++ b/xmpp-vala/src/module/xep/0391_jingle_encrypted_transports.vala @@ -15,6 +15,7 @@ public class Module : XmppStreamModule, SecurityPrecondition { } public override void detach(XmppStream stream) { + stream.get_module(ServiceDiscovery.Module.IDENTITY).remove_feature(stream, NS_URI); } public bool is_available(XmppStream stream, Jid full_jid) { @@ -139,4 +140,4 @@ public interface EnvelopEncoding : Object { public abstract void encode_envelop(XmppStream stream, Jid local_full_jid, Jid peer_full_jid, SecurityParameters security_params, StanzaNode security); } -} \ No newline at end of file +} -- cgit v1.2.3-54-g00ecf