From: Sergey Matveev Date: Thu, 17 Sep 2015 17:49:15 +0000 (+0300) Subject: No need in termination before breaking the cycle X-Git-Tag: 4.0^2~7 X-Git-Url: http://www.git.cypherpunks.ru/?p=govpn.git;a=commitdiff_plain;h=94cdeb707e71837333e7123271fe26441dd910d0 No need in termination before breaking the cycle Signed-off-by: Sergey Matveev --- 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 }