Skip to content

Commit ff5db74

Browse files
committed
JAVA-2778: Release AsyncConnectionSource in ListDatabasesOperation
1 parent bc48949 commit ff5db74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public void call(final AsyncConnectionSource source, final AsyncConnection conne
172172
} else {
173173
executeWrappedCommandProtocolAsync(binding, "admin", getCommand(),
174174
CommandResultDocumentCodec.create(decoder, "databases"), connection, asyncTransformer(source, connection),
175-
releasingCallback(errHandlingCallback, connection));
175+
releasingCallback(errHandlingCallback, source, connection));
176176
}
177177
}
178178
});

0 commit comments

Comments
 (0)