Skip setting data count if unavailable
This commit is contained in:
parent
58cf401883
commit
92b9c4cd9a
|
@ -203,6 +203,9 @@ extension VPNManager {
|
|||
private func onDataCount(_: Date) {
|
||||
switch vpnState.value.vpnStatus {
|
||||
case .connected:
|
||||
guard let currentDataCount = currentDataCount else {
|
||||
return
|
||||
}
|
||||
currentState?.dataCount = currentDataCount
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in New Issue