Skip to content

Commit 13bf620

Browse files
author
Kryvchun
committed
recheck old conns
1 parent 5574af4 commit 13bf620

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sonic/driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ func (c *driver) Ping() error {
103103

104104
// softPing pings the connection if it wasn't pinged for a while.
105105
func (c *driver) softPing(threshold time.Duration) (ok bool) {
106-
if threshold <= 0 || time.Since(c.lastPing) > threshold {
106+
if threshold <= 0 || time.Since(c.lastPing) < threshold {
107107
return true
108108
}
109109

0 commit comments

Comments
 (0)