Clients are offline when expired

This commit is contained in:
Juan Font 2022-12-18 11:57:45 +00:00
parent ca37dc6268
commit 55b198a16a
1 changed files with 4 additions and 0 deletions

View File

@ -146,6 +146,10 @@ func (machine *Machine) isOnline() bool {
return false
}
if machine.isExpired() {
return false
}
return machine.LastSeen.After(time.Now().Add(-keepAliveInterval))
}