From 84bf6fc0bbb888c76a435294d773d62c6e1dacd8 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Wed, 29 Dec 2010 15:59:03 +0000 Subject: Ignore closed connection after _changes are downloaded Closes COUCHDB-993 git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1053658 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep_changes_feed.erl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/couchdb/couch_rep_changes_feed.erl') diff --git a/src/couchdb/couch_rep_changes_feed.erl b/src/couchdb/couch_rep_changes_feed.erl index 246e82c0..604dc0aa 100644 --- a/src/couchdb/couch_rep_changes_feed.erl +++ b/src/couchdb/couch_rep_changes_feed.erl @@ -227,6 +227,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}; -- cgit v1.2.3