We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8e7cb9 commit 808a30bCopy full SHA for 808a30b
cursor.go
@@ -519,7 +519,7 @@ func (c *Cursor) seekCursor(bufferResponse bool) error {
519
return c.lastErr
520
}
521
522
- if len(c.responses) == 0 && c.closed {
+ if len(c.buffer) == 0 && len(c.responses) == 0 && c.closed {
523
return errCursorClosed
524
525
@@ -534,7 +534,7 @@ func (c *Cursor) seekCursor(bufferResponse bool) error {
534
return err
535
536
continue // go around the loop again to re-apply pending skips
537
- } else if len(c.responses) == 0 && !c.finished && !c.closed {
+ } else if len(c.buffer) == 0 && len(c.responses) == 0 && !c.finished && !c.closed {
538
// We skipped all of our data, load some more
539
if err := c.fetchMore(); err != nil {
540
0 commit comments