We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26d84e4 commit 831d5dcCopy full SHA for 831d5dc
src/main/java/org/javawebstack/orm/connection/pool/SQLPool.java
@@ -47,9 +47,8 @@ public void release(SQL sql) {
47
sql.close();
48
return;
49
}
50
- if(!connections.contains(sql))
51
- throw new IllegalArgumentException("Not a connection of this pool");
52
- connectionQueue.add(sql);
+ if(!connectionQueue.contains(sql))
+ connectionQueue.add(sql);
53
scale();
54
55
0 commit comments