Skip to content

Commit 3c86aa1

Browse files
author
Boris
committed
fix: Возвращаем значение waitgreen в true через 3 часа
1 parent 06e10aa commit 3c86aa1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/wg/wg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ func cleanup() {
104104
for {
105105
now := time.Now()
106106
if !wgEnabled {
107-
if diff := now.Sub(wgSetTime); diff > cutoff {
107+
if diff := now.Sub(wgSetTime); diff > resetTime {
108108
log.Printf("Set wgEnabled to true at %s", diff)
109109
wgEnabled = true
110110
wgSetTime = time.Now()

0 commit comments

Comments
 (0)