Explorar o código

bugfix, only awaiting async functions now

digital %!s(int64=7) %!d(string=hai) anos
pai
achega
6b7141f00e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)