From 3c946daf887344be47c0f6b333f00ca259588493 Mon Sep 17 00:00:00 2001 From: V2Ray Date: Wed, 14 Oct 2015 00:57:00 +0200 Subject: [PATCH] Fix infinate look in retry --- common/retry/retry.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/retry/retry.go b/common/retry/retry.go index a13e5cd673..754d13da7f 100644 --- a/common/retry/retry.go +++ b/common/retry/retry.go @@ -29,6 +29,7 @@ func (r *retryer) On(method func() error) error { return RetryFailed } <-time.After(time.Duration(delay) * time.Millisecond) + attempt++ } }