We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56a36ff commit 7cc086eCopy full SHA for 7cc086e
ebean-datasource/src/main/java/io/ebean/datasource/pool/ConnectionBuffer.java
@@ -177,10 +177,12 @@ void addFree(PooledConnection pc) {
177
* Returns true, if this connection was part of the busy list or false, if not (or removed twice)
178
*/
179
boolean removeBusy(PooledConnection c) {
180
- if (c.busyNode() == null) {
+ Node node = c.busyNode();
181
+ if (node == null || node.next == null) {
182
+ // node is not yet or no longer in busy list
183
return false;
184
}
- c.busyNode().remove();
185
+ node.remove();
186
busySize--;
187
c.setBusyNode(null);
188
return true;
0 commit comments