From 5b740ea7dd28d45278938cf66f748bcd18aa0543 Mon Sep 17 00:00:00 2001 From: Narasimha-sc <166327228+Narasimha-sc@users.noreply.github.com> Date: Sat, 26 Sep 2026 10:16:58 +0000 Subject: [PATCH] agent: restart retry loops when reconnecting all servers reconnectAllServers closes the clients but left every retry loop waiting out its current interval, so "Reconnect all servers" and a network config change could take up to the maximum interval to deliver anything. It now increments the network epoch as a network change does, after closing the clients. --- src/Simplex/Messaging/Agent.hs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Simplex/Messaging/Agent.hs b/src/Simplex/Messaging/Agent.hs index e3c062fbf..fa33af736 100644 --- a/src/Simplex/Messaging/Agent.hs +++ b/src/Simplex/Messaging/Agent.hs @@ -754,6 +754,7 @@ reconnectAllServers c = do reconnectServerClients c smpClients reconnectServerClients c xftpClients reconnectServerClients c ntfClients + atomically $ modifyTVar' (networkEpoch c) (+ 1) -- | Register device notifications token registerNtfToken :: AgentClient -> NetworkRequestMode -> DeviceToken -> NotificationsMode -> AE NtfTknStatus