# HG changeset patch # User Goffi # Date 1396435052 -7200 # Node ID 54cd05f68c7c680dc6af812ace15422025ca3e11 # Parent 4a8903021fda6457cb02c4df417d604834d8b3da jp (info/disco): fixed disco loop when --connect is used diff -r 4a8903021fda -r 54cd05f68c7c frontends/src/jp/cmd_info.py --- a/frontends/src/jp/cmd_info.py Wed Apr 02 12:31:23 2014 +0200 +++ b/frontends/src/jp/cmd_info.py Wed Apr 02 12:37:32 2014 +0200 @@ -34,8 +34,8 @@ self.parser.add_argument("jid", type=str, help=_("Entity to discover")) def connected(self): + self.need_loop=True super(Disco, self).connected() - self.need_loop=True jids = self.host.check_jids([self.args.jid]) jid = jids[0] self.host.bridge.discoInfos(jid, profile_key=self.host.profile, callback=lambda infos: self.gotInfos(infos, jid), errback=self.error)