summaryrefslogtreecommitdiff
path: root/internal/client/ui/core/core.go
diff options
context:
space:
mode:
authorKyren223 <Kyren223@proton.me>2025-05-23 10:30:24 +0300
committerKyren223 <Kyren223@proton.me>2025-05-23 10:30:24 +0300
commit8aa5cbb72e6ad289582ac8fe687a7bfcc5e49beb (patch)
tree12db8f645c22edbf2019208b549076da24f2cf55 /internal/client/ui/core/core.go
parentd6a2eda646af6f3f1607b0d488c1354fa09c638d (diff)
Fixed packet loss bug due to client not waiting before exiting for the
writes to fully proccess
Diffstat (limited to 'internal/client/ui/core/core.go')
-rw-r--r--internal/client/ui/core/core.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/client/ui/core/core.go b/internal/client/ui/core/core.go
index ba02ba9..5f5fc3c 100644
--- a/internal/client/ui/core/core.go
+++ b/internal/client/ui/core/core.go
@@ -729,7 +729,7 @@ func calculateNotifications() {
}
pings := getSignalNotification(signal)
- state.State.Notifications[signal] = pings
+ state.State.LocalNotifications[signal] = pings
}
for networkId := range state.State.Networks {
@@ -740,9 +740,9 @@ func calculateNotifications() {
pings, hasNotif := getFrequencyNotification(networkId, frequency.ID)
if hasNotif {
- state.State.Notifications[frequency.ID] = pings
+ state.State.LocalNotifications[frequency.ID] = pings
} else {
- delete(state.State.Notifications, frequency.ID)
+ delete(state.State.LocalNotifications, frequency.ID)
}
}
}