You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2022/01/26 12:50:53 UTC

[incubator-ponymail-foal] 01/02: revert: is it causing int-test failure?

This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git

commit 9647252535df27ad4eff5ac4d94d1f0a14c492bf
Author: Sebb <se...@apache.org>
AuthorDate: Wed Jan 26 12:50:22 2022 +0000

    revert: is it causing int-test failure?
---
 server/main.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/server/main.py b/server/main.py
index 547bb59..bc5a014 100644
--- a/server/main.py
+++ b/server/main.py
@@ -227,10 +227,12 @@ class Server(plugins.server.BaseServer):
         await plugins.background.run_tasks(self)
 
     def run(self):
+        loop = asyncio.get_event_loop()
         try:
-            asyncio.run(self.server_loop())
+            loop.run_until_complete(self.server_loop())
         except KeyboardInterrupt:
             pass
+        loop.close()
 
 
 if __name__ == "__main__":