fix: with heartbeat timeout Listen did not complete

This commit is contained in:
2026-05-15 20:53:48 +03:00
parent 86ff71f33c
commit a206b0335d
@@ -97,7 +97,7 @@ func (a *AgentConnection) listenHeartbeat(heartbeats <-chan domainHub.CreateHear
} }
a.log.Warn().Msg("agent not send heartbeat") a.log.Warn().Msg("agent not send heartbeat")
a.cancel() a.Close()
return return
case heartbeat := <-heartbeats: case heartbeat := <-heartbeats:
a.log.Debug(). a.log.Debug().