mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
Fix(Task): check if task is still running before calling emitAborted()
Signed-off-by: 0x189D7997 <199489335+0x189D7997@users.noreply.github.com>
This commit is contained in:
parent
4ed3aa1f1c
commit
15b39af92e
1 changed files with 1 additions and 1 deletions
|
|
@ -165,7 +165,7 @@ class Task : public QObject, public QRunnable {
|
|||
//! used by external code to ask the task to abort
|
||||
virtual bool abort()
|
||||
{
|
||||
if (canAbort())
|
||||
if (canAbort() && isRunning())
|
||||
emitAborted();
|
||||
return canAbort();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue