From 81c8fb6fa7a4e3e354eb7af4e6bc50187e801da2 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 29 Apr 2021 23:12:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A5=20I=20don't=20really=20know,=20I?= =?UTF-8?q?=20forgot=20to=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyproject.toml | 2 +- royalnet/engineer/pda/base.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 98408f2a..15f86f34 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "royalnet" -version = "6.5.5" +version = "6.5.6" description = "A multipurpose bot framework" authors = ["Stefano Pigozzi "] license = "AGPL-3.0-or-later" diff --git a/royalnet/engineer/pda/base.py b/royalnet/engineer/pda/base.py index de30680d..2d30a40b 100644 --- a/royalnet/engineer/pda/base.py +++ b/royalnet/engineer/pda/base.py @@ -36,8 +36,10 @@ class PDA: log.fatal("All implementations have finished running?!") def run(self): + log.debug("Getting event loop...") + loop = asyncio.get_event_loop() log.debug("Running blockingly all implementations...") - asyncio.run(self._run()) + loop.run_until_complete(self._run()) log.fatal("Blocking call has finished?!")