decrypt_message: don't always send heartbeat
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
89eb4dfece
commit
95481e64b2
1 changed files with 1 additions and 1 deletions
|
@ -643,7 +643,7 @@ class XEP_0384(BasePlugin):
|
|||
finally:
|
||||
asyncio.ensure_future(self._publish_bundle())
|
||||
|
||||
if self.auto_heartbeat:
|
||||
if self.auto_heartbeat and self.should_heartbeat():
|
||||
msg = self.make_heartbeat(jid)
|
||||
msg.send()
|
||||
|
||||
|
|
Loading…
Reference in a new issue