From 441d1d0cf9ba81650e4289d42025ef97d397b4ef Mon Sep 17 00:00:00 2001 From: Owen Green Date: Fri, 12 Jun 2020 20:05:23 +0100 Subject: [PATCH] Things that haven't run, can't be cancelled. Hope this fixes #58 --- include/FluidSCWrapper.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/FluidSCWrapper.hpp b/include/FluidSCWrapper.hpp index f0bf2e2..ab91c68 100644 --- a/include/FluidSCWrapper.hpp +++ b/include/FluidSCWrapper.hpp @@ -54,7 +54,7 @@ struct WrapperState ~WrapperState() { - if(!mJobDone && !mSynchronous) + if(!mJobDone && !mSynchronous && mHasTriggered) { std::cout << "Processing Cancelled" << std::endl; }