Don't restart event handler on termination COUCHDB-2561
Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/6f983d33 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/tree/6f983d33 Diff: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/diff/6f983d33 Branch: refs/heads/master Commit: 6f983d3327f36b7fc61fd5aff1437646355268cb Parents: 106f55a Author: ILYA Khlopotov <iil...@ca.ibm.com> Authored: Fri Jan 30 11:06:12 2015 -0800 Committer: ILYA Khlopotov <iil...@ca.ibm.com> Committed: Wed Feb 4 05:58:59 2015 -0800 ---------------------------------------------------------------------- src/chttpd_config_listener.erl | 1 + 1 file changed, 1 insertion(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/blob/6f983d33/src/chttpd_config_listener.erl ---------------------------------------------------------------------- diff --git a/src/chttpd_config_listener.erl b/src/chttpd_config_listener.erl index 76fc396..7087b81 100644 --- a/src/chttpd_config_listener.erl +++ b/src/chttpd_config_listener.erl @@ -41,6 +41,7 @@ handle_config_change("chttpd", "server_options", Value, _, Settings) -> handle_config_change(_, _, _, _, Settings) -> {ok, Settings}. +handle_config_terminate(_, stop, _) -> ok; handle_config_terminate(_Server, _Reason, State) -> spawn(fun() -> timer:sleep(5000),