diff options
author | fiaxh <git@lightrise.org> | 2020-04-21 16:25:21 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-04-21 16:25:21 +0200 |
commit | 7c4260eed718961874fc0ea665263ea2ce59338b (patch) | |
tree | 7d583974ebf797e7e827836176c87735a87c39f6 /xmpp-vala/src/module/xep/0261_jingle_in_band_bytestreams.vala | |
parent | 3a8fef7b7b3c101c4bcb8cd3d7460a009c98a41e (diff) | |
download | dino-7c4260eed718961874fc0ea665263ea2ce59338b.tar.gz dino-7c4260eed718961874fc0ea665263ea2ce59338b.zip |
Remove features from service discovery module when detaching module from stream
fixes #179
fixes #812
Diffstat (limited to 'xmpp-vala/src/module/xep/0261_jingle_in_band_bytestreams.vala')
-rw-r--r-- | xmpp-vala/src/module/xep/0261_jingle_in_band_bytestreams.vala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0261_jingle_in_band_bytestreams.vala b/xmpp-vala/src/module/xep/0261_jingle_in_band_bytestreams.vala index 1a810ee8..fc6bc057 100644 --- a/xmpp-vala/src/module/xep/0261_jingle_in_band_bytestreams.vala +++ b/xmpp-vala/src/module/xep/0261_jingle_in_band_bytestreams.vala @@ -14,7 +14,9 @@ public class Module : Jingle.Transport, XmppStreamModule { stream.get_module(Jingle.Module.IDENTITY).register_transport(this); stream.get_module(ServiceDiscovery.Module.IDENTITY).add_feature(stream, NS_URI); } - public override void detach(XmppStream stream) { } + public override void detach(XmppStream stream) { + stream.get_module(ServiceDiscovery.Module.IDENTITY).remove_feature(stream, NS_URI); + } public override string get_ns() { return NS_URI; } public override string get_id() { return IDENTITY.id; } |