Преглед изворни кода

bugfix, handle_tasks.cancel_remaining was never awaited

digital пре 7 година
родитељ
комит
05330b26ab
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      network/__init__.py

+ 1 - 1
network/__init__.py

@@ -234,7 +234,7 @@ class Server(object):
         atexit.unregister(self.shutdown)
         lserver.info("shutting down server")
         error_handler(
-            self.handle_tasks.cancel_remaining,log_text="handler cancel")
+            await self.handle_tasks.cancel_remaining,log_text="handler cancel")
         # check if there is actually a socket. if the shutdown method is
         # executed before the start method, there is no socket.
         if self.socket: