Skip to content

Commit

Permalink
fix(cursor): call initialize after session support check
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
mbroadst committed Nov 25, 2019
1 parent 3471c28 commit 3b076b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/cursor.js
Expand Up @@ -435,7 +435,7 @@ class CoreCursor extends Readable {
return;
}

cursor._next(callback);
this._initializeCursor(callback);
});

return;
Expand Down

0 comments on commit 3b076b3

Please sign in to comment.