Merge pull request #2956 from mikawudi/master-fix

fix: check RedisConnection status befor RedisConnection object join f…
pull/2979/head
Nikita Koksharov 5 years ago committed by GitHub
commit 66bee099ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -151,6 +151,10 @@ public class ClientConnectionsEntry {
}
public void releaseConnection(RedisConnection connection) {
if (connection.isClosed()) {
return;
}
if (client != connection.getRedisClient()) {
connection.closeAsync();
return;
@ -225,6 +229,10 @@ public class ClientConnectionsEntry {
}
public void releaseSubscribeConnection(RedisPubSubConnection connection) {
if (connection.isClosed()) {
return;
}
if (client != connection.getRedisClient()) {
connection.closeAsync();
return;

Loading…
Cancel
Save