Przeglądaj źródła

bugfix, only awaiting async functions now

digital 7 lat temu
rodzic
commit
6b7141f00e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      network/__init__.py

+ 1 - 1
network/__init__.py

@@ -226,7 +226,7 @@ class Server(object):
         it unregisters itself from atexit, so it doesn't get executed twice
         when it was manually called before to program exits.
         """
-        def error_handler(func,*args,log_text="error",async_=True,**kwargs):
+        def error_handler(func,*args,log_text="error",async_=False,**kwargs):
             try:
                 if async:
                     await func(*args,**kwargs)