Skip to content

Commit

Permalink
Merge pull request #22541 from brave/vpn_status_inconsistency_macOS
Browse files Browse the repository at this point in the history
Fixed vpn panel shows in-progress after wakeup when vpn is disconnected
  • Loading branch information
simonhong authored Mar 14, 2024
2 parents ffcbe20 + db605f8 commit f766af7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,15 @@ OSStatus StorePassword(const NSString* password, std::string* error_str) {
NEVPNStatus current_status = [[vpn_manager connection] status];
VLOG(2) << "CheckConnection: " << NEVPNStatusToString(current_status);
switch (current_status) {
case NEVPNStatusReasserting:
// See this link for more details about why this status is ingored.
// https://github.com/brave/brave-browser/issues/29500#issuecomment-1989762108
VLOG(2) << "Ignore NEVPNStatusReasserting";
break;
case NEVPNStatusConnected:
OnConnected();
break;
case NEVPNStatusConnecting:
case NEVPNStatusReasserting:
OnIsConnecting();
break;
case NEVPNStatusDisconnected:
Expand Down

0 comments on commit f766af7

Please sign in to comment.