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/0191_blocking_command.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xmpp-vala/src/module/xep/0191_blocking_command.vala') diff --git a/xmpp-vala/src/module/xep/0191_blocking_command.vala b/xmpp-vala/src/module/xep/0191_blocking_command.vala index ee8a1fed..2fc1d3b4 100644 --- a/xmpp-vala/src/module/xep/0191_blocking_command.vala +++ b/xmpp-vala/src/module/xep/0191_blocking_command.vala @@ -72,8 +72,9 @@ public class Module : XmppStreamModule, Iq.Handler { } public override void detach(XmppStream stream) { - stream.stream_negotiated.disconnect(on_stream_negotiated); stream.get_module(Iq.Module.IDENTITY).unregister_from_namespace(NS_URI, this); + stream.get_module(ServiceDiscovery.Module.IDENTITY).remove_feature(stream, NS_URI); + stream.stream_negotiated.disconnect(on_stream_negotiated); } public override string get_ns() { return NS_URI; } -- cgit v1.2.3-54-g00ecf