From bc0a542f206a455550988d65445a328cb90f9cb7 Mon Sep 17 00:00:00 2001 From: Niclas Axelsson Date: Wed, 21 May 2014 10:45:56 +0200 Subject: [PATCH] Do not react to normal exits --- src/boss_db_controller.erl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/boss_db_controller.erl b/src/boss_db_controller.erl index 96bcf825..009fe996 100644 --- a/src/boss_db_controller.erl +++ b/src/boss_db_controller.erl @@ -251,6 +251,8 @@ code_change(_OldVsn, State, _Extra) -> handle_info(stop, State) -> {stop, shutdown, State}; +handle_info({'EXIT', _From, 'normal'}, State) -> + {noreply, State}; handle_info({'EXIT', _From, _Reason}, State) when State#state.connection_state == connected -> {ok, Tref} = setup_reconnect(State), {noreply, State#state { connection_state = disconnected, connection_delay = State#state.connection_delay * 2,