Skip to content

Commit e50c51a

Browse files
committed
fix(cursor): call initialize after session support check
If a cursor needed to check for session support it would do so, and then call the `next` function which in most cases would directly call `_initialize` again - but sometimes would erroneously issue a `getMore`.
1 parent da931ea commit e50c51a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/cursor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ class CoreCursor extends Readable {
435435
return;
436436
}
437437

438-
cursor._next(callback);
438+
this._initializeCursor(callback);
439439
});
440440

441441
return;

0 commit comments

Comments
 (0)