From 03b01dfe0c8e0d2a3bfad8c6631d3945c914dd5e Mon Sep 17 00:00:00 2001 From: Fabian Fichter Date: Fri, 24 Apr 2020 09:24:43 +0200 Subject: [PATCH] Fix double unlock of mutex in CECP implementation Closes #111. --- src/xboard.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xboard.cpp b/src/xboard.cpp index f540571..bcf4c00 100644 --- a/src/xboard.cpp +++ b/src/xboard.cpp @@ -110,8 +110,8 @@ void StateMachine::process_command(Position& pos, std::string token, std::istrin vars += "," + v; sync_cout << "feature setboard=1 usermove=1 time=1 memory=1 smp=1 colors=0 draw=0 name=0 sigint=0 ping=1 myname=Fairy-Stockfish variants=\"" << vars << "\"" - << Options << sync_endl - << "feature done=1" << sync_endl; + << Options << sync_endl; + sync_cout << "feature done=1" << sync_endl; } else if (token == "accepted" || token == "rejected" || token == "result" || token == "?") {} else if (token == "ping") -- 1.7.0.4