MCPcopy Create free account
hub / github.com/Windscribe/Desktop-App / logoutImplAfterDisconnect

Method logoutImplAfterDisconnect

src/client/engine/engine/engine.cpp:1107–1134  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1105}
1106
1107void Engine::logoutImplAfterDisconnect(bool keepFirewallOn)
1108{
1109 locationsModel_->clear();
1110
1111#if defined(Q_OS_MACOS) || defined(Q_OS_LINUX)
1112 firewallController_->setFirewallOnBoot(false);
1113#endif
1114
1115 if (isLoggedIn_) {
1116 WSNet::instance()->apiResourcersManager()->logout();
1117 isLoggedIn_ = false;
1118 tryLoginNextConnectOrDisconnect_ = false;
1119 }
1120
1121 GetWireGuardConfig::removeWireGuardSettings();
1122
1123 if (connectionManager_) {
1124 connectionManager_->removeIkev2ConnectionFromOS();
1125 }
1126
1127 if (!keepFirewallOn)
1128 {
1129 firewallController_->firewallOff();
1130 emit firewallStateChanged(false);
1131 }
1132
1133 emit logoutFinished();
1134}
1135
1136void Engine::continueWithUsernameAndPasswordImpl(const QString &username, const QString &password, bool bSave)
1137{

Callers

nothing calls this directly

Calls 5

clearMethod · 0.45
setFirewallOnBootMethod · 0.45
logoutMethod · 0.45
firewallOffMethod · 0.45

Tested by

no test coverage detected