NPE fixed

pull/616/head
Nikita 9 years ago
parent ccaebb29fb
commit 42e0c93a64

@ -203,7 +203,10 @@ public class RedisClient {
public ChannelGroupFuture shutdownAsync() {
for (Channel channel : channels) {
RedisConnection.getFrom(channel).setClosed(true);
RedisConnection connection = RedisConnection.getFrom(channel);
if (connection != null) {
connection.setClosed(true);
}
}
return channels.close();
}

Loading…
Cancel
Save