mirror of
https://github.com/PrismLauncher/PrismLauncher
synced 2026-04-23 09:05:03 +00:00
Fix(Task): check if task is still running before calling emitAborted()
Signed-off-by: 0x189D7997 <199489335+0x189D7997@users.noreply.github.com>
(cherry picked from commit 15b39af92e)
This commit is contained in:
parent
b29be81e36
commit
ba32a9155f
|
|
@ -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…
Reference in a new issue