mirror of
https://github.com/safing/portmaster
synced 2025-09-01 18:19:12 +00:00
Check online status a little more often
This commit is contained in:
parent
0e93204caf
commit
73271a30ab
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue