Kaynağa Gözat

wip: un-daemon tesseractnetwork

justheuristic 5 yıl önce
ebeveyn
işleme
da80e359d2
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      tesseract/network/__init__.py

+ 1 - 1
tesseract/network/__init__.py

@@ -49,7 +49,7 @@ class TesseractNetwork(mp.Process):
     def shutdown(self) -> None:
         """ Shuts down the network process """
         if self.is_alive():
-            self.terminate()
+            self.kill()
         else:
             warnings.warn("Network shutdown has no effect: network process is already not alive")