diff options
| author | Kyren223 <Kyren223@proton.me> | 2025-05-23 10:30:24 +0300 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2025-05-23 10:30:24 +0300 |
| commit | 8aa5cbb72e6ad289582ac8fe687a7bfcc5e49beb (patch) | |
| tree | 12db8f645c22edbf2019208b549076da24f2cf55 /internal/client/ui/core/core.go | |
| parent | d6a2eda646af6f3f1607b0d488c1354fa09c638d (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.go | 6 |
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) } } } |
