mirror of
https://github.com/proxiodev/RedisBungee.git
synced 2024-11-10 15:08:01 +00:00
Add omitted returnBrokenResource
This commit is contained in:
parent
07e2621ab2
commit
9cf7fdb3c4
@ -97,6 +97,7 @@ public final class RedisBungee extends Plugin {
|
|||||||
return servers.build();
|
return servers.build();
|
||||||
} catch (JedisConnectionException e) {
|
} catch (JedisConnectionException e) {
|
||||||
getLogger().log(Level.SEVERE, "Unable to fetch all server IDs", e);
|
getLogger().log(Level.SEVERE, "Unable to fetch all server IDs", e);
|
||||||
|
pool.returnBrokenResource(jedis);
|
||||||
return Collections.singletonList(serverId);
|
return Collections.singletonList(serverId);
|
||||||
} finally {
|
} finally {
|
||||||
pool.returnResource(jedis);
|
pool.returnResource(jedis);
|
||||||
|
Loading…
Reference in New Issue
Block a user