Selaa lähdekoodia

wip: un-daemon tesseractnetwork

justheuristic 5 vuotta sitten
vanhempi
commit
55c79d10c1
1 muutettua tiedostoa jossa 4 lisäystä ja 1 poistoa
  1. 4 1
      tesseract/network/__init__.py

+ 4 - 1
tesseract/network/__init__.py

@@ -34,7 +34,10 @@ class TesseractNetwork(mp.Process):
         self.ready.set()
 
         while True:
-            method, args, kwargs = self._pipe.recv()
+            try:
+                method, args, kwargs = self._pipe.recv()
+            except:
+                print('>>', self.pid, flush=True)
             getattr(self, method)(*args, **kwargs)
 
     def run_in_background(self, await_ready=True, timeout=None):