Check online status a little more often
This commit is contained in:
@@ -321,11 +321,11 @@ func monitorOnlineStatus(ctx context.Context) error {
|
|||||||
func getDynamicStatusTrigger() <-chan time.Time {
|
func getDynamicStatusTrigger() <-chan time.Time {
|
||||||
switch GetOnlineStatus() {
|
switch GetOnlineStatus() {
|
||||||
case StatusOffline:
|
case StatusOffline:
|
||||||
return time.After(5 * time.Second)
|
return time.After(1 * time.Second)
|
||||||
case StatusLimited, StatusPortal:
|
case StatusLimited, StatusPortal:
|
||||||
return time.After(10 * time.Second)
|
return time.After(5 * time.Second)
|
||||||
case StatusSemiOnline:
|
case StatusSemiOnline:
|
||||||
return time.After(1 * time.Minute)
|
return time.After(20 * time.Second)
|
||||||
case StatusOnline:
|
case StatusOnline:
|
||||||
return nil
|
return nil
|
||||||
case StatusUnknown:
|
case StatusUnknown:
|
||||||
|
|||||||
Reference in New Issue
Block a user