Close connections before closing the whole cluster client.

This commit is contained in:
Jon Chambers 2020-08-05 16:12:56 -04:00 committed by Jon Chambers
parent bf1b00b163
commit e0f8a28f38
1 changed files with 3 additions and 0 deletions

View File

@ -56,6 +56,9 @@ public class FaultTolerantRedisCluster {
}
void shutdown() {
stringClusterConnection.close();
binaryClusterConnection.close();
clusterClient.shutdown();
}