justheuristic 5 лет назад
Родитель
Сommit
66f35581d0
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      tesseract/server/__init__.py

+ 2 - 1
tesseract/server/__init__.py

@@ -112,7 +112,8 @@ class TesseractServer(threading.Thread):
         for process in self.conn_handlers:
             process.terminate()
         self.runtime.shutdown()
-        self.network.shutdown()
+        if self.network is not None:
+            self.network.shutdown()
 
 
 def socket_loop(sock, experts):