Skip to content

Commit

Permalink
fix: terminate with close
Browse files Browse the repository at this point in the history
  • Loading branch information
DDDHuang authored and turtleDeng committed May 25, 2021
1 parent 330aeae commit 103d7d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ekka_cluster_etcd.erl
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,13 @@ handle_cast(_Request, State = #state{}) ->
{noreply, State}.

handle_info({'EXIT', _From, Reason}, State) ->
eetcd:close(?MODULE),
{stop, Reason, State};

handle_info(_Info, State = #state{}) ->
{noreply, State}.

terminate(_Reason, _State = #state{}) ->
ok.
eetcd:close(?MODULE).

code_change(_OldVsn, State = #state{}, _Extra) ->
{ok, State}.
Expand Down

0 comments on commit 103d7d3

Please sign in to comment.