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 d13b7bc5996523b813064b6106c00f4d73c58f74
Author: Sebb <[email protected]>
AuthorDate: Wed Jan 26 12:02:43 2022 +0000

    Simplify
---
 server/main.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

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

Reply via email to