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 22, 2019
1 parent da931ea commit e50c51a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/cursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ class CoreCursor extends Readable {
return;
}

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

return;
Expand Down

0 comments on commit e50c51a

Please sign in to comment.