changeset 974:54cd05f68c7c

jp (info/disco): fixed disco loop when --connect is used
author Goffi <goffi@goffi.org>
date Wed, 02 Apr 2014 12:37:32 +0200
parents 4a8903021fda
children b37b1d183ac3
files frontends/src/jp/cmd_info.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)