Skip to content

Commit 831d5dc

Browse files
committed
Fixed IllegalArgumentException
1 parent 26d84e4 commit 831d5dc

File tree

1 file changed

+2
-3
lines changed
  • src/main/java/org/javawebstack/orm/connection/pool

1 file changed

+2
-3
lines changed

src/main/java/org/javawebstack/orm/connection/pool/SQLPool.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,8 @@ public void release(SQL sql) {
4747
sql.close();
4848
return;
4949
}
50-
if(!connections.contains(sql))
51-
throw new IllegalArgumentException("Not a connection of this pool");
52-
connectionQueue.add(sql);
50+
if(!connectionQueue.contains(sql))
51+
connectionQueue.add(sql);
5352
scale();
5453
}
5554
}

0 commit comments

Comments
 (0)