diff --git a/engine/storage_redis.go b/engine/storage_redis.go index 666cbc02f..2ef9e5ce6 100644 --- a/engine/storage_redis.go +++ b/engine/storage_redis.go @@ -134,7 +134,9 @@ func (rs *RedisStorage) Cmd(cmd string, args ...interface{}) *redis.Resp { } func (rs *RedisStorage) Close() { + rs.poolLock.Lock() rs.dbPool.Empty() + rs.poolLock.Unlock() } func (rs *RedisStorage) Flush(ignore string) error {