mirror of
https://github.com/Z3Prover/z3
synced 2026-06-19 07:06:28 +00:00
avoid spurious cancel
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
e95f9757c9
commit
dba826039d
1 changed files with 2 additions and 0 deletions
|
|
@ -1694,6 +1694,8 @@ namespace smt {
|
|||
|
||||
void parallel::batch_manager::set_canceled() {
|
||||
std::scoped_lock lock(mux);
|
||||
if (m_state != state::is_running)
|
||||
return;
|
||||
cancel_background_threads();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue