comparison 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
comparison
equal deleted inserted replaced
973:4a8903021fda 974:54cd05f68c7c
32 32
33 def add_parser_options(self): 33 def add_parser_options(self):
34 self.parser.add_argument("jid", type=str, help=_("Entity to discover")) 34 self.parser.add_argument("jid", type=str, help=_("Entity to discover"))
35 35
36 def connected(self): 36 def connected(self):
37 self.need_loop=True
37 super(Disco, self).connected() 38 super(Disco, self).connected()
38 self.need_loop=True
39 jids = self.host.check_jids([self.args.jid]) 39 jids = self.host.check_jids([self.args.jid])
40 jid = jids[0] 40 jid = jids[0]
41 self.host.bridge.discoInfos(jid, profile_key=self.host.profile, callback=lambda infos: self.gotInfos(infos, jid), errback=self.error) 41 self.host.bridge.discoInfos(jid, profile_key=self.host.profile, callback=lambda infos: self.gotInfos(infos, jid), errback=self.error)
42 42
43 def error(self, failure): 43 def error(self, failure):