fix(tunnel): retain chains until receiver replacement is acknowledged

This commit is contained in:
sagitchu
2026-11-08 23:36:43 +08:00
parent 7f0177491b
commit 89a1a7bff3
4 changed files with 128 additions and 6 deletions
@@ -1973,6 +1973,7 @@ func (h *Handler) redeployTunnelAndForwardsLocked(tunnelID int64) error {
}
_, services, applyErr := h.applyTunnelRuntimeUpsert(state)
applyErr = errors.Join(applyErr, h.acknowledgeTunnelServiceReplacements(tunnelID, services))
applyErr = errors.Join(applyErr, h.retryTunnelRuntimeCleanupLocked(tunnelID))
if applyErr != nil {
return applyErr
}