diff options
author | Tom Smeding <tom.smeding@gmail.com> | 2018-08-20 23:37:48 +0200 |
---|---|---|
committer | Tom Smeding <tom.smeding@gmail.com> | 2018-08-20 23:37:48 +0200 |
commit | 974a5a213bd780f5021c3e3d40ffad05e3c0a23e (patch) | |
tree | 2dc24a08f1305148cfb0d9433c89fbecf9599199 /main.cpp | |
parent | f62f1505da4cd68246ce40ad3cbccd81df1189df (diff) |
Kill referee on player timeout
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -278,6 +278,7 @@ static void playMatch(Player &p1, Player &p2, int index, const Params ¶ms) { if (mres.ms1 / 1000 > timeout_msec || mres.ms2 / 1000 > timeout_msec) { mres.status = MatchResult::Status::timeout; mres.sc1 = mres.sc2 = 0; + referee.terminate(); goto match_done; } |