From 73271a30abe8b0d05e2a3dca8ce89728f0234a27 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 25 Jan 2021 17:09:40 +0100 Subject: [PATCH] Check online status a little more often --- netenv/online-status.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/netenv/online-status.go b/netenv/online-status.go index 882c56c3..db1d868e 100644 --- a/netenv/online-status.go +++ b/netenv/online-status.go @@ -321,11 +321,11 @@ func monitorOnlineStatus(ctx context.Context) error { func getDynamicStatusTrigger() <-chan time.Time { switch GetOnlineStatus() { case StatusOffline: - return time.After(5 * time.Second) + return time.After(1 * time.Second) case StatusLimited, StatusPortal: - return time.After(10 * time.Second) + return time.After(5 * time.Second) case StatusSemiOnline: - return time.After(1 * time.Minute) + return time.After(20 * time.Second) case StatusOnline: return nil case StatusUnknown: