Skip to content

Commit 3f6bca4

Browse files
committed
1 parent b7be8c8 commit 3f6bca4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void endOperation() {
182182
void close() {
183183
boolean doClose = withLock(lock, () -> {
184184
State localState = state;
185-
if (localState == State.OPERATION_IN_PROGRESS) {
185+
if (localState.inProgress()) {
186186
state = State.CLOSE_PENDING;
187187
} else if (localState != State.CLOSED) {
188188
state = State.CLOSED;

0 commit comments

Comments
 (0)