Fix issue with reconnecting to Pi-hole after forgetting
This commit is contained in:
parent
a0bc5b98cf
commit
a4ad6443e3
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ class PiHoleDataStore: ObservableObject {
|
|||
}
|
||||
|
||||
func monitorStatus() async {
|
||||
while !Task.isCancelled {
|
||||
while apiKey != nil && baseUrl != nil && !Task.isCancelled {
|
||||
do {
|
||||
try await Task.sleep(nanoseconds: 1_000_000_000)
|
||||
await loadSummary()
|
||||
|
|
Loading…
Reference in a new issue