diff frontends/src/jp/cmd_info.py @ 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 8ca5c990ed92
children 6ec513ad92c2
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)