Skip to content

Commit 3af05f4

Browse files
committed
polishing catch in connect
1 parent 4934f47 commit 3af05f4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/java/redis/clients/jedis/Connection.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,13 +175,10 @@ public void connect() {
175175

176176
outputStream = new RedisOutputStream(socket.getOutputStream());
177177
inputStream = new RedisInputStream(socket.getInputStream());
178-
} catch (IOException ex) {
178+
} catch (Exception ex) {
179179
broken = true;
180180
throw new JedisConnectionException("Failed connecting to "
181181
+ socketFactory.getDescription(), ex);
182-
} catch(Exception ex) {
183-
broken = true;
184-
throw ex;
185182
}
186183
}
187184
}

0 commit comments

Comments
 (0)