Skip to content

Commit 0a6781c

Browse files
committed
JAVA-2778: Release connection source after asynchronous write retry
1 parent c5035a9 commit 0a6781c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

driver-core/src/main/com/mongodb/operation/OperationHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ public void onResult(final T result, final Throwable t) {
375375

376376
public SingleResultCallback<T> releaseConnectionAndGetWrapped() {
377377
connection.release();
378+
source.release();
378379
return wrapped;
379380
}
380381
}

0 commit comments

Comments
 (0)