Skip to content

Commit

Permalink
Ignore closed connection after _changes are downloaded
Browse files Browse the repository at this point in the history
Closes COUCHDB-993

git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.0.x@1053659 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
kocolosk committed Dec 29, 2010
1 parent 85d358f commit 08d7184
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/couchdb/couch_rep_changes_feed.erl
Expand Up @@ -204,6 +204,9 @@ handle_info({ibrowse_async_response_end, Id}, #state{reqid=Id} = State) ->
handle_info({'EXIT', From, normal}, #state{changes_loop=From} = State) ->
handle_feed_completion(State);

handle_info({'EXIT', From, normal}, #state{conn=From, complete=true} = State) ->
{noreply, State};

handle_info({'EXIT', From, Reason}, #state{changes_loop=From} = State) ->
?LOG_ERROR("changes_loop died with reason ~p", [Reason]),
{stop, changes_loop_died, State};
Expand Down

0 comments on commit 08d7184

Please sign in to comment.