From 006f8b49d9ebe1ca334b934d0a127c0029300871 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 16 Oct 2021 11:28:38 +0200 Subject: 'writemaybe' command to allow broken pipe errors --- main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 24edd5b..306c5cc 100644 --- a/main.cpp +++ b/main.cpp @@ -287,7 +287,7 @@ static void playMatch(Player &p1, Player &p2, int index, const Params ¶ms) { } } else if (auto writeEvent = get_if(&event)) { - if (!procs[writeEvent->player].writeLine(writeEvent->line)) { + if (!procs[writeEvent->player].writeLine(writeEvent->line, writeEvent->allowBrokenPipe)) { cout << "ERROR writing move to player " << writeEvent->player + 1 << " (game " << gameCodeName(p1, p2, index) << ")" << endl; throw StopCompetitionError(); -- cgit v1.2.3-54-g00ecf