Skip to content

Commit

Permalink
Merge pull request #137 from sunnyanthony/sunnyanthony-patch-remove-i…
Browse files Browse the repository at this point in the history
…ssue

correct the order of  pushing and yielding in resending procedure
  • Loading branch information
Lenka42 authored Oct 18, 2021
2 parents 50bc083 + 1763b9f commit 8000e4f
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 8000e4f

Please sign in to comment.