Skip to content

Commit

Permalink
reorder push and yield in resending procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyanthony authored Oct 15, 2021
1 parent 50bc083 commit 1763b9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gmqtt/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ async def _resend_qos_messages(self):
except Exception as exc:
logger.error('[ERROR WHILE RESENDING] mid: %s', mid, exc_info=exc)

await asyncio.sleep(0.001)
await self._persistent_storage.push_message(mid, package)
await asyncio.sleep(0.001)
else:
await asyncio.sleep(self._retry_deliver_timeout)

Expand Down

0 comments on commit 1763b9f

Please sign in to comment.