fix(AuthFlow): don't call MSADeviceCodeStep::abort twice

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-06-01 14:20:06 +05:00
parent c7a7306e1b
commit 1c645577d4
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF

View file

@ -23,7 +23,6 @@ AuthFlow::AuthFlow(AccountData* data, Action action) : Task(), m_data(data)
if (action == Action::DeviceCode) {
auto oauthStep = makeShared<MSADeviceCodeStep>(m_data);
connect(oauthStep.get(), &MSADeviceCodeStep::authorizeWithBrowser, this, &AuthFlow::authorizeWithBrowserWithExtra);
connect(this, &Task::aborted, oauthStep.get(), &MSADeviceCodeStep::abort);
m_steps.append(oauthStep);
} else {
auto oauthStep = makeShared<MSAStep>(m_data, action == Action::Refresh);