Skip to content

Commit 7f54c56

Browse files
author
DvirDukhan
committed
fixed design - connection should stay open on an exception
1 parent 85cc0dc commit 7f54c56

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/main/java/com/redislabs/redisgraph/impl/api/ContextedRedisGraph.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,11 @@ protected ResultSet sendQuery(String graphId, String preparedQuery) {
5353
return new ResultSetImpl(rawResponse, this, caches.getGraphCache(graphId));
5454
}
5555
catch (JRedisGraphRunTimeError rt) {
56-
conn.close();
5756
throw rt;
5857
}
5958
catch (JedisDataException j) {
60-
conn.close();
6159
throw new JRedisGraphCompileTimeError(j);
6260
}
63-
catch (Exception e) {
64-
conn.close();
65-
throw e;
66-
}
6761
}
6862

6963
/**

0 commit comments

Comments
 (0)