Skip to content

Commit

Permalink
Merge branch 'feature/redesign'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ali Sabil committed Mar 1, 2013
2 parents 20a99da + b7183eb commit 1137a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongo_cursor.erl
Expand Up @@ -118,7 +118,7 @@ handle_call(rest, _From, State) ->

handle_call({rest, Limit}, _From, State) ->
case rest_i(State, Limit) of
{Reply, #state{cursor = 0} = UpdatedState} ->
{Reply, #state{cursor = 0, batch = []} = UpdatedState} ->
{stop, normal, Reply, UpdatedState};
{Reply, UpdatedState} ->
{reply, Reply, UpdatedState}
Expand Down

0 comments on commit 1137a70

Please sign in to comment.