Selaa lähdekoodia

shutdown network if it exists

justheuristic 5 vuotta sitten
vanhempi
commit
66f35581d0
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  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):