Check online status a little more often

This commit is contained in:
Daniel 2021-01-25 17:09:40 +01:00
parent 0e93204caf
commit 73271a30ab

View file

@ -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: