VcsCommand: Don't cancel finished task from d'tor

Amends a5683616b9

Change-Id: I6b746dfa444737e87c98b878c017374f2034d400
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-08-15 12:19:30 +02:00
parent 144cefcf43
commit 8703bcd777

View File

@@ -161,7 +161,8 @@ void VcsCommand::postRunCommand(const FilePath &workingDirectory)
VcsCommand::~VcsCommand() VcsCommand::~VcsCommand()
{ {
d->m_watcher.cancel(); if (!d->m_watcher.future().isFinished())
d->m_watcher.future().cancel();
delete d; delete d;
} }