jp (info/disco): fixed disco loop when --connect is used
This commit is contained in:
parent
0368522356
commit
87fea26537
1 changed files with 1 additions and 1 deletions
|
|
@ -34,8 +34,8 @@ class Disco(base.CommandBase):
|
|||
self.parser.add_argument("jid", type=str, help=_("Entity to discover"))
|
||||
|
||||
def connected(self):
|
||||
super(Disco, self).connected()
|
||||
self.need_loop=True
|
||||
super(Disco, self).connected()
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue