mirror of
https://github.com/safing/portmaster
synced 2025-09-01 10:09:11 +00:00
Disable time-triggered online check
This commit is contained in:
parent
e473c0e228
commit
89317b8848
1 changed files with 0 additions and 9 deletions
|
@ -201,20 +201,11 @@ func triggerOnlineStatusInvestigation() {
|
|||
|
||||
func monitorOnlineStatus(ctx context.Context) error {
|
||||
for {
|
||||
timeout := 5 * time.Minute
|
||||
/*
|
||||
if GetOnlineStatus() != StatusOnline {
|
||||
timeout = time.Second
|
||||
log.Debugf("checking online status again in %s because current status is %s", timeout, GetOnlineStatus())
|
||||
}
|
||||
*/
|
||||
// wait for trigger
|
||||
select {
|
||||
case <-ctx.Done():
|
||||
return nil
|
||||
case <-onlineStatusInvestigationTrigger:
|
||||
|
||||
case <-time.After(timeout):
|
||||
}
|
||||
|
||||
// enable waiting
|
||||
|
|
Loading…
Add table
Reference in a new issue