From 94cdeb707e71837333e7123271fe26441dd910d0 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 17 Sep 2015 20:49:15 +0300 Subject: [PATCH] No need in termination before breaking the cycle Signed-off-by: Sergey Matveev --- src/govpn/cmd/govpn-client/udp.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/govpn/cmd/govpn-client/udp.go b/src/govpn/cmd/govpn-client/udp.go index b4398f3..1be7a98 100644 --- a/src/govpn/cmd/govpn-client/udp.go +++ b/src/govpn/cmd/govpn-client/udp.go @@ -72,8 +72,6 @@ MainCycle: } if atomic.LoadInt64(&peer.BytesIn)+atomic.LoadInt64(&peer.BytesOut) > govpn.MaxBytesPerKey { log.Println("Need rehandshake") - terminator <- struct{}{} - terminator = nil rehandshaking <- struct{}{} break MainCycle } -- 2.44.0