]> Cypherpunks.ru repositories - govpn.git/commitdiff
No need in termination before breaking the cycle
authorSergey Matveev <stargrave@stargrave.org>
Thu, 17 Sep 2015 17:49:15 +0000 (20:49 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 17 Sep 2015 17:49:15 +0000 (20:49 +0300)
Signed-off-by: Sergey Matveev <stargrave@stargrave.org>
src/govpn/cmd/govpn-client/udp.go

index b4398f327a0b69931fa87350e34be004b97a7719..1be7a98be778b3ef549cade13798d73695574b71 100644 (file)
@@ -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
                        }