Permalink
Browse files

fix return value in amqp_gen_consumer

  • Loading branch information...
1 parent 2d6a782 commit 7195c305bf039fa940c71ea9f3beb7cfbf4a30bd Vladimir Baranov committed with jlouis Jul 26, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/amqp_gen_consumer.erl
@@ -204,8 +204,10 @@ handle_call({consumer_call, Msg}, From,
{noreply, State#state{module_state = NewMState}};
{reply, Reply, NewMState} ->
{reply, Reply, State#state{module_state = NewMState}};
+ {error, {consumer_died, Reason}, NewMState} ->
+ {stop, Reason, State#state{module_state = NewMState}};
{error, Reason, NewMState} ->
- {stop, {error, Reason}, {error, Reason},
+ {stop, {error, Reason},
State#state{module_state = NewMState}}
end;
handle_call({consumer_call, Method, Args}, _From,

0 comments on commit 7195c30

Please sign in to comment.