From 755157d3a99700fb9f77f74b6ec7a59dfa8cf6a0 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sun, 10 Jan 2021 20:07:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Make=20PDA=20run=20a=20loop=20cy?= =?UTF-8?q?cle=20after=20putting=20a=20bullet=20in=20the=20dispenser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- royalnet_console/pda.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/royalnet_console/pda.py b/royalnet_console/pda.py index 534dd50a..f3343387 100644 --- a/royalnet_console/pda.py +++ b/royalnet_console/pda.py @@ -110,6 +110,9 @@ class ConsolePDA: log.debug(f"Putting bullet {bullet!r} in dispenser {self.dispenser!r}...") await self.dispenser.put(bullet) + log.debug("Awaiting another loop cycle") + await asyncio.sleep(0) + # Objects exported by this module __all__ = (