chore: add TODO for potential future race condition

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-02-05 11:15:40 +05:00
parent 9f94b00925
commit 6f0e053f4d
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF

View file

@ -173,6 +173,9 @@ LaunchDecision LaunchController::decideLaunchMode()
ProgressDialog progDialog(m_parentWidget);
progDialog.setSkipButton(true, tr("Abort"));
// TODO: this relies on tasks' synchronous signal dispatching nature
// TODO: meaning currentTask can't complete and become null while this code is running
// TODO: this code will produce a race condition when tasks become fully async
auto task = accountToCheck->currentTask();
progDialog.execWithTask(task.get());