You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 4, 2021. It is now read-only.
Some engines like ProDeo really prefer to be closed in a proper way sending quit instead of just killing the process.
Here's a proposed change for EngineThread.py.
[...]
importsys
[...]
defclose(self):
self.working=Falseifself.pid:
self.put_line("quit") # try to close the engine properlywtime=40# wait for it, wait for it...whileself.process.poll() isNoneandwtime>0:
time.sleep(0.05)
wtime-=1ifself.process.poll() isNone: # nope, no lucksys.stderr.write("INFO: the engine %s won't close properly.\n"%self.exe)
self.process.kill()
self.process.terminate()
self.pid=None
No sure if I've broken anything, my python is retarded. 😱
The text was updated successfully, but these errors were encountered:
Some engines like ProDeo really prefer to be closed in a proper way sending quit instead of just killing the process.
Here's a proposed change for EngineThread.py.
No sure if I've broken anything, my python is retarded. 😱
The text was updated successfully, but these errors were encountered: