curso-r / stockfish

An R package to analyze chess games with the Stockfish engine
GNU General Public License v3.0
31 stars 2 forks source link

Fix a race condition in a test case #5

Closed gaborcsardi closed 3 years ago

gaborcsardi commented 3 years ago

After calling engine$quit() we need to wait for the process to actually end, before calling process$is_alive(). If R is too fast, then the process has no time to quit.

Partially addresses #4.