Permalink
Browse files

Revert "fix return value in amqp_gen_consumer"

This reverts commit 7195c30.
  • Loading branch information...
jlouis committed Feb 5, 2013
1 parent aed90b6 commit 48acd2c08f08569ff069b16abfdb7062e1fe473f
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/amqp_gen_consumer.erl
@@ -204,10 +204,8 @@ 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},
+ {stop, {error, Reason}, {error, Reason},
State#state{module_state = NewMState}}
end;
handle_call({consumer_call, Method, Args}, _From,

0 comments on commit 48acd2c

Please sign in to comment.