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 70de0e188d52ef300e31c9d3abf952bef44650d4
Author: Sebb <[email protected]>
AuthorDate: Mon Dec 20 12:51:18 2021 +0000

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

diff --git a/server/main.py b/server/main.py
index 7288429..6f31a44 100644
--- a/server/main.py
+++ b/server/main.py
@@ -206,12 +206,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