[PATCH 06/12] device: use UnderLoadAfterTime constant

Simon Ruderich simon at ruderich.org
Mon Jan 1 11:52:56 CET 2018


---
 src/device.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/device.go b/src/device.go
index 537af67..85d65b2 100644
--- a/src/device.go
+++ b/src/device.go
@@ -88,7 +88,7 @@ func (device *Device) IsUnderLoad() bool {
 	now := time.Now()
 	underLoad := len(device.queue.handshake) >= UnderLoadQueueSize
 	if underLoad {
-		device.underLoadUntil.Store(now.Add(time.Second))
+		device.underLoadUntil.Store(now.Add(UnderLoadAfterTime))
 		return true
 	}
 
-- 
2.15.1



More information about the WireGuard mailing list