Skip to content

Commit a991309

Browse files
committed
fix: respect engine timeouts again
fixes #495
1 parent f88f2cc commit a991309

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/src/matchmaking/match/match.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ bool Match::playMove(Player& us, Player& them) {
233233
return false;
234234
}
235235

236+
if (timeout) {
237+
setEngineTimeoutStatus(us, them);
238+
return false;
239+
}
240+
236241
board_.makeMove(move);
237242

238243
// CuteChess uses plycount/2 for its movenumber, which is wrong for epd books as it doesnt take

0 commit comments

Comments
 (0)