We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7be8c8 commit 3f6bca4Copy full SHA for 3f6bca4
driver-core/src/main/com/mongodb/internal/operation/CursorResourceManager.java
@@ -182,7 +182,7 @@ void endOperation() {
182
void close() {
183
boolean doClose = withLock(lock, () -> {
184
State localState = state;
185
- if (localState == State.OPERATION_IN_PROGRESS) {
+ if (localState.inProgress()) {
186
state = State.CLOSE_PENDING;
187
} else if (localState != State.CLOSED) {
188
state = State.CLOSED;
0 commit comments