aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/xep/0047_in_band_bytestreams.vala
diff options
context:
space:
mode:
authorhrxi <hrrrxi@gmail.com>2019-08-06 15:37:49 +0200
committerhrxi <hrrrxi@gmail.com>2019-08-06 15:38:31 +0200
commit1b1fac0bb567d7e51423ac384fa37c2c0a41bc33 (patch)
tree9b73fdda8fad65c1fd874c3f904136728b9931e0 /xmpp-vala/src/module/xep/0047_in_band_bytestreams.vala
parent94794666d7ac7555a60ba5bb6d7382d776327cb7 (diff)
downloaddino-1b1fac0bb567d7e51423ac384fa37c2c0a41bc33.tar.gz
dino-1b1fac0bb567d7e51423ac384fa37c2c0a41bc33.zip
Implement detach
Diffstat (limited to 'xmpp-vala/src/module/xep/0047_in_band_bytestreams.vala')
-rw-r--r--xmpp-vala/src/module/xep/0047_in_band_bytestreams.vala4
1 files changed, 3 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/xep/0047_in_band_bytestreams.vala b/xmpp-vala/src/module/xep/0047_in_band_bytestreams.vala
index 5d59d18c..caf5309d 100644
--- a/xmpp-vala/src/module/xep/0047_in_band_bytestreams.vala
+++ b/xmpp-vala/src/module/xep/0047_in_band_bytestreams.vala
@@ -14,7 +14,9 @@ public class Module : XmppStreamModule, Iq.Handler {
stream.add_flag(new Flag());
stream.get_module(Iq.Module.IDENTITY).register_for_namespace(NS_URI, this);
}
- public override void detach(XmppStream stream) { }
+ public override void detach(XmppStream stream) {
+ stream.get_module(Iq.Module.IDENTITY).unregister_from_namespace(NS_URI, this);
+ }
public void on_iq_set(XmppStream stream, Iq.Stanza iq) {
// the iq module ensures that there's only one child node