fix: some functions in TaskHandler had their logic reversed from calls to Task functions. (#2311)

This commit is contained in:
paxcut
2025-06-20 13:08:18 -07:00
committed by GitHub
parent 755a53f821
commit 88eecf6624

View File

@@ -209,7 +209,7 @@ namespace hex {
if (!task)
return false;
return !task->hadException();
return task->hadException();
}
bool TaskHolder::shouldInterrupt() const {
@@ -217,7 +217,7 @@ namespace hex {
if (!task)
return false;
return !task->shouldInterrupt();
return task->shouldInterrupt();
}
bool TaskHolder::wasInterrupted() const {
@@ -225,7 +225,7 @@ namespace hex {
if (!task)
return false;
return !task->wasInterrupted();
return task->wasInterrupted();
}
void TaskHolder::interrupt() const {