diff --git a/dbpool.go b/dbpool.go index e8d71ac..e181248 100644 --- a/dbpool.go +++ b/dbpool.go @@ -429,6 +429,7 @@ func (this *dbPool) LoopLoadNew( cond.L.Lock() cond.Wait() cond.L.Unlock() + lastIdx = 0 } else { time.Sleep(time.Millisecond * 1000 * 3) }