Clear lastError in VPNManager.reconnect()

This commit is contained in:
Davide De Rosa 2022-05-19 11:08:36 +02:00
parent 9735b9ab14
commit fe4ca51820
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ public class VPNManager: ObservableObject {
func reconnect(_ configuration: VPNConfiguration) async {
pp_log.info("Reconnecting VPN")
clearLastError()
await strategy.connect(configuration: configuration)
}