From bb01d4c246db3281af3b02a337059e34fb4f7069 Mon Sep 17 00:00:00 2001 From: siddontang Date: Mon, 15 Dec 2014 09:59:20 +0800 Subject: [PATCH] Merge branch 'pr/122' into develop --- ledis/t_ttl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ledis/t_ttl.go b/ledis/t_ttl.go index f16a735..2fd2e3f 100644 --- a/ledis/t_ttl.go +++ b/ledis/t_ttl.go @@ -139,7 +139,7 @@ func (c *ttlChecker) setNextCheckTime(when int64, force bool) { c.Lock() if force { c.nc = when - } else if !force && c.nc > when { + } else if c.nc > when { c.nc = when } c.Unlock()