aboutsummaryrefslogtreecommitdiff
path: root/launcher/InstanceList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'launcher/InstanceList.cpp')
-rw-r--r--launcher/InstanceList.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/launcher/InstanceList.cpp b/launcher/InstanceList.cpp
index bf25d2d0..a4b8d8aa 100644
--- a/launcher/InstanceList.cpp
+++ b/launcher/InstanceList.cpp
@@ -796,10 +796,12 @@ class InstanceStaging : public Task {
// FIXME/TODO: add ability to abort during instance commit retries
bool abort() override
{
- if (m_child && m_child->canAbort())
- return m_child->abort();
+ if (!canAbort())
+ return false;
- return false;
+ m_child->abort();
+
+ return Task::abort();
}
bool canAbort() const override
{