Pass correct argument type to should_heartbeat call
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
59543ac585
commit
7a887ccac3
1 changed files with 1 additions and 1 deletions
|
@ -654,7 +654,7 @@ class XEP_0384(BasePlugin):
|
||||||
finally:
|
finally:
|
||||||
asyncio.ensure_future(self._publish_bundle())
|
asyncio.ensure_future(self._publish_bundle())
|
||||||
|
|
||||||
if self.auto_heartbeat and self.should_heartbeat(jid):
|
if self.auto_heartbeat and self.should_heartbeat(sender):
|
||||||
async def send_heartbeat():
|
async def send_heartbeat():
|
||||||
msg = await self.make_heartbeat(JID(jid))
|
msg = await self.make_heartbeat(JID(jid))
|
||||||
msg.send()
|
msg.send()
|
||||||
|
|
Loading…
Reference in a new issue