Skip to content

Commit 8f9b11e

Browse files
committed
[JAVA-304]: Problem with closing cursors - killCursor may try to close a cursor of id 0
1 parent 4fd983c commit 8f9b11e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/com/mongodb/DBApiLayer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ void killCursor() {
477477
if (_curResult == null)
478478
return;
479479
long curId = _curResult.cursor();
480-
if (curId < 0)
480+
if (curId <= 0)
481481
return;
482482

483483
List<Long> l = new ArrayList<Long>();

0 commit comments

Comments
 (0)