From 55b198a16a7e2d3dab387674a6f010c2f114c065 Mon Sep 17 00:00:00 2001 From: Juan Font Date: Sun, 18 Dec 2022 11:57:45 +0000 Subject: [PATCH] Clients are offline when expired --- machine.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/machine.go b/machine.go index 2aae7911..1f958cce 100644 --- a/machine.go +++ b/machine.go @@ -146,6 +146,10 @@ func (machine *Machine) isOnline() bool { return false } + if machine.isExpired() { + return false + } + return machine.LastSeen.After(time.Now().Add(-keepAliveInterval)) }