From 55bbfc689573c2c6d164e6666d73d92ce5489467 Mon Sep 17 00:00:00 2001 From: Goffi Date: Mon, 7 Jan 2013 00:58:43 +0100 Subject: [PATCH] core: initial discovery fix --- src/core/xmpp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/xmpp.py b/src/core/xmpp.py index 68a54396..36a51186 100644 --- a/src/core/xmpp.py +++ b/src/core/xmpp.py @@ -73,8 +73,9 @@ class SatXMPPClient(client.XMPPClient): self.presence.available() - self.disco.requestInfo(jid.JID(self.host_app.memory.getParamA("Server", "Connection", profile_key=self.profile))).addCallback(self.host_app.serverDisco, self.profile) #FIXME: use these informations - self.disco.requestItems(jid.JID(self.host_app.memory.getParamA("Server", "Connection", profile_key=self.profile))).addCallback(self.host_app.serverDiscoItems, self.disco, self.profile, self.client_initialized) + self.disco.requestInfo(jid.JID(self.jid.host)).addCallback(self.host_app.serverDisco, self.profile) #FIXME: use these informations + + self.disco.requestItems(jid.JID(self.jid.host)).addCallback(self.host_app.serverDiscoItems, self.disco, self.profile, self.client_initialized) self.conn_deferred.callback(None) def initializationFailed(self, reason):