diff --git a/src/main/java/org/crazycake/shiro/RedisSentinelManager.java b/src/main/java/org/crazycake/shiro/RedisSentinelManager.java index b8de88c4d..19acb0a8a 100644 --- a/src/main/java/org/crazycake/shiro/RedisSentinelManager.java +++ b/src/main/java/org/crazycake/shiro/RedisSentinelManager.java @@ -26,7 +26,7 @@ public class RedisSentinelManager extends WorkAloneRedisManager implements IRedi private int database = Protocol.DEFAULT_DATABASE; - private JedisSentinelPool jedisPool; + private volatile JedisSentinelPool jedisPool; @Override protected Jedis getJedis() {