mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-22 20:28:00 +00:00
fix nullpointer in JedisPooledSummoner
Jedis pool when null it calls shutdown so added an check to check if its null
This commit is contained in:
parent
c1ad902bd3
commit
af4e180b2c
@ -37,7 +37,9 @@ public class JedisPooledSummoner implements Summoner<JedisPooled> {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
this.jedisPool.close();
|
if (this.jedisPool != null) {
|
||||||
|
this.jedisPool.close();
|
||||||
|
}
|
||||||
this.jedisPooled.close();
|
this.jedisPooled.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user