This commit is contained in:
Sander Land committed 2020-12-27 13:37:30 +01:00
1 parent 4a13198050
commit da7cb500ae
1 file changed
+1 -1
+1 -1
View File
@@ -85,6 +85,7 @@ class KataGoEngine:
self.start()
def start(self):
self.write_queue = queue.Queue()
try:
self.katrain.log(f"Starting KataGo with {self.command}", OUTPUT_DEBUG)
startupinfo = None
@@ -104,7 +105,6 @@ class KataGoEngine:
i18n._("Starting Kata failed").format(command=self.command, error=e), OUTPUT_ERROR,
)
return # don't start
self.write_queue = queue.Queue()
self.analysis_thread = threading.Thread(target=self._analysis_read_thread, daemon=True)
self.stderr_thread = threading.Thread(target=self._read_stderr_thread, daemon=True)
self.write_stdin_thread = threading.Thread(target=self._write_stdin_thread, daemon=True)