Skip to content

Commit

Permalink
VPN-5680: Complete mobile onboarding without internet (#8328)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattLichtenstein authored Oct 19, 2023
1 parent f6bd991 commit d913e70
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/connectionmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d913e70

Please sign in to comment.