From 8aa5cbb72e6ad289582ac8fe687a7bfcc5e49beb Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 23 May 2025 10:30:24 +0300 Subject: Fixed packet loss bug due to client not waiting before exiting for the writes to fully proccess --- internal/client/ui/core/core.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/client/ui/core/core.go') 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) } } } -- cgit v1.3.1