decrypt: ensure_future is no more required
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
9947fdbb2e
commit
2c4dc24b84
1 changed files with 2 additions and 5 deletions
|
@ -720,11 +720,8 @@ class XEP_0384(BasePlugin):
|
|||
should_heartbeat = await self._should_heartbeat(sender, sid, isPrekeyMessage)
|
||||
if should_heartbeat:
|
||||
log.debug('Decryption: Sending hearbeat to %s / %d', jid, sid)
|
||||
async def send_heartbeat():
|
||||
log.debug('Sending a heartbeat message')
|
||||
msg = await self.make_heartbeat(JID(jid), sid)
|
||||
msg.send()
|
||||
asyncio.ensure_future(send_heartbeat())
|
||||
|
||||
return body
|
||||
|
||||
|
|
Loading…
Reference in a new issue