Avoid calling a process that may have already exited.

This commit is contained in:
Gregory Burd 2013-04-20 13:30:09 -04:00
parent 48141346f0
commit 6c74c825e4

View file

@ -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()) ->