diff --git a/src/thread.cpp b/src/thread.cpp index 22022204..aa25408a 100644 --- a/src/thread.cpp +++ b/src/thread.cpp @@ -72,7 +72,7 @@ Thread::~Thread() assert(!searching); exit = true; - quit(); + clearHistoryScore(); start_searching(); stdThread.join(); } @@ -97,7 +97,7 @@ void Thread::clear() void Thread::start_searching() { - quit(); + clearHistoryScore(); std::lock_guard lk(mutex); searching = true; @@ -195,7 +195,7 @@ void Thread::act() return; std::lock_guard lk(mutex); - quit(); + clearHistoryScore(); } void Thread::setAi(Position *p) diff --git a/src/thread.h b/src/thread.h index 87058a68..5f7e5a16 100644 --- a/src/thread.h +++ b/src/thread.h @@ -100,10 +100,8 @@ public: void analyze(Color c); - void quit() + void clearHistoryScore() { - loggerDebug("Timeout\n"); - //requiredQuit = true; // TODO #ifdef HOSTORY_HEURISTIC movePicker->clearHistoryScore(); #endif