mirror of
https://github.com/lorsanstand/HomeOps-Hub.git
synced 2026-06-19 14:25:16 +03:00
fix: with heartbeat timeout Listen did not complete
This commit is contained in:
@@ -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().
|
||||||
|
|||||||
Reference in New Issue
Block a user