diff --git a/NewLife.Redis/FullRedis.cs b/NewLife.Redis/FullRedis.cs index b90d2dd..283f034 100644 --- a/NewLife.Redis/FullRedis.cs +++ b/NewLife.Redis/FullRedis.cs @@ -73,7 +73,8 @@ public FullRedis(RedisOptions options) Server = options.Server; Password = options.Password; Db = options.Db; - Timeout = options.Timeout; + if (options.Timeout > 0) + Timeout = options.Timeout; Prefix = options.Prefix; if (!options.Configuration.IsNullOrEmpty())