From d913e70fe8c247a854ae0e780ec94e20fb1c1631 Mon Sep 17 00:00:00 2001 From: Matt Lichtenstein Date: Thu, 19 Oct 2023 15:43:46 -0400 Subject: [PATCH] VPN-5680: Complete mobile onboarding without internet (#8328) --- src/connectionmanager.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/connectionmanager.cpp b/src/connectionmanager.cpp index e961db5d9e..c0e4329ba9 100644 --- a/src/connectionmanager.cpp +++ b/src/connectionmanager.cpp @@ -938,8 +938,11 @@ bool ConnectionManager::activate(const ServerData& serverData, // Check if the error propagation has changed the Mozilla VPN // state. Continue only if the user is still authenticated and - // subscribed. - if (App::instance()->state() != App::StateMain) { + // subscribed. We can ignore this during onboarding because we are + // not actually turning the VPN on (only asking for VPN system + // config permissions) + if (App::instance()->state() != App::StateMain && + App::instance()->state() != App::StateOnboarding) { return; }