Просмотр исходного кода

bugfix, handle_tasks.cancel_remaining was never awaited

digital 7 лет назад
Родитель
Сommit
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: