jonthysell / Mzinga

Open-source software to play the board game Hive.
MIT License
82 stars 9 forks source link

Exit MzingaEngine if input pipe closes. #117

Closed edre closed 2 years ago

jonthysell commented 2 years ago

If you pass in exit at the end of your input stream, does the Engine not exit?

edre commented 2 years ago

The issue is that if my viewer crashes or gets killed it neither sends an "exit" command nor kills the process. Therefore, I propose this simple backup to end gracefully if the input stream closes. Are you aware of any usecases where this would be a bad idea?