summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_rep.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r--src/couchdb/couch_rep.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl
index 02b5c58d..5a27636f 100644
--- a/src/couchdb/couch_rep.erl
+++ b/src/couchdb/couch_rep.erl
@@ -223,7 +223,7 @@ handle_call({fin, {LastSeq, RevsCount}}, {Pid,_}, #state{enum_pid=Pid} = State)
case State#state.listeners of
[] ->
% still waiting for the first listener to sen a request
- {noreply, State#state{current_seq=LastSeq}};
+ {noreply, State#state{current_seq=LastSeq,done=true}};
_ ->
{stop, normal, ok, State#state{current_seq=LastSeq}}
end.