Avoid calling a process that may have already exited.
This commit is contained in:
parent
48141346f0
commit
6c74c825e4
1 changed files with 2 additions and 2 deletions
|
@ -151,8 +151,8 @@ start(Partition, Config) ->
|
|||
|
||||
%% @doc Stop the wterl backend
|
||||
-spec stop(state()) -> ok.
|
||||
stop(#state{connection=Connection}) ->
|
||||
wterl_conn:close(Connection).
|
||||
stop(_State) ->
|
||||
ok. %% The connection is closed by wterl_conn:stop()
|
||||
|
||||
%% @doc Retrieve an object from the wterl backend
|
||||
-spec get(riak_object:bucket(), riak_object:key(), state()) ->
|
||||
|
|
Loading…
Reference in a new issue