From fcd2d6785215b91bf9e5bf840c6bf54b5a3a9a04 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Mon, 15 Jul 2024 15:53:24 -0400 Subject: [PATCH] change terminate conds --- CMakeLists.txt | 2 +- include/blt/gp/program.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9c0892a..ba76e40 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.0.78) +project(blt-gp VERSION 0.0.79) include(CTest) diff --git a/include/blt/gp/program.h b/include/blt/gp/program.h index bcfb92d..4ba88fa 100644 --- a/include/blt/gp/program.h +++ b/include/blt/gp/program.h @@ -412,7 +412,7 @@ namespace blt::gp [[nodiscard]] bool should_thread_terminate() const { - return should_terminate() && thread_helper.lifetime_over; + return should_terminate() || thread_helper.lifetime_over; } [[nodiscard]] random_t& get_random() const;