Skip to content

Commit 29d6f46

Browse files
rozzastIncMale
andauthored
Update driver-core/src/main/com/mongodb/internal/operation/AsyncCommandBatchCursor.java
Co-authored-by: Valentin Kovalenko <[email protected]>
1 parent 7e67a4f commit 29d6f46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

driver-core/src/main/com/mongodb/internal/operation/AsyncCommandBatchCursor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private static final class ResourceManager extends CursorResourceManager<AsyncCo
236236
<R> AsyncCallbackSupplier<R> execute(final AsyncCallbackSupplier<R> callbackSupplier) {
237237
return callback -> {
238238
if (!tryStartOperation()) {
239-
callback.onResult(null, new IllegalStateException(MESSAGE_IF_CONCURRENT_OPERATION));
239+
callback.onResult(null, new IllegalStateException(MESSAGE_IF_CLOSED_AS_CURSOR));
240240
} else {
241241
callbackSupplier.whenComplete(this::endOperation).get(callback);
242242
}

0 commit comments

Comments
 (0)