Browse Source

bugfix, only awaiting async functions now

digital 8 years ago
parent
commit
6b7141f00e
1 changed files with 1 additions and 1 deletions
  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
         it unregisters itself from atexit, so it doesn't get executed twice
         when it was manually called before to program exits.
         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:
             try:
                 if async:
                 if async:
                     await func(*args,**kwargs)
                     await func(*args,**kwargs)