aboutsummaryrefslogtreecommitdiff
path: root/plugins/http-files
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/http-files')
-rw-r--r--plugins/http-files/src/upload_stream_module.vala3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/http-files/src/upload_stream_module.vala b/plugins/http-files/src/upload_stream_module.vala
index cb105cee..573f298a 100644
--- a/plugins/http-files/src/upload_stream_module.vala
+++ b/plugins/http-files/src/upload_stream_module.vala
@@ -77,8 +77,7 @@ public class UploadStreamModule : XmppStreamModule {
public override void attach(XmppStream stream) {
Iq.Module.require(stream);
ServiceDiscovery.Module.require(stream);
-
- query_availability(stream);
+ stream.stream_negotiated.connect(query_availability);
}
public override void detach(XmppStream stream) {