]> Cypherpunks.ru repositories - govpn.git/commitdiff
Reconnect client after timeout, do not exit
authorSergey Matveev <stargrave@stargrave.org>
Sun, 3 Jul 2016 08:45:26 +0000 (11:45 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Sun, 3 Jul 2016 08:45:26 +0000 (11:45 +0300)
VERSION
src/cypherpunks.ru/govpn/cmd/govpn-client/main.go

diff --git a/VERSION b/VERSION
index 3659ea2fa3a7771c8641de0cdbf8c0a02e47e49c..95ee81a411792c5d968d8b3f783e35e690aaeaed 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-5.8
+5.9
index 5c510019c11f65fb4f8a54f507b2c6eeaa9c6ff6..7a858bba79eef5cbe868111462a11f77b7a9a80d 100644 (file)
@@ -161,7 +161,8 @@ MainCycle:
                        termination <- struct{}{}
                        break MainCycle
                case <-timeouted:
-                       break MainCycle
+                       govpn.BothPrintf(`[sleep seconds="%d"]`, timeout)
+                       time.Sleep(time.Second * time.Duration(timeout))
                case <-rehandshaking:
                }
                close(timeouted)