Permalink
Browse files

WHISTLE-1225: reconnect on startup had tuple elements backward

  • Loading branch information...
1 parent 041fc01 commit d9d2256c4d3852b73023baa1cfa1bf8cbb577b8d @k-anderson k-anderson committed Aug 12, 2012
@@ -443,7 +443,7 @@ handle_info({amqp_channel_event, restarted}, #state{params=Params, bindings=Bind
|| {Type, BindProps} <- Bindings
],
_ = [gen_server:cast(self(), {add_queue, Name, Props, Bind})
- || {Name, {Props, Bind}} <- OtherQueues
+ || {Name, {Bind, Props}} <- OtherQueues
],
_ = erlang:send_after(?TIMEOUT_RETRY_CONN, self(), is_consuming),
{noreply, State#state{queue=Q, is_consuming=false, bindings=[], other_queues=[]}, hibernate};
@@ -87,7 +87,7 @@ init([]) ->
,{consume_options, [{exclusive, false}]}
,{basic_qos, 1}
],
- Bindings= [{notifications, [{restrict_to, [presence_probe]}]}],
+ Bindings = [{notifications, [{restrict_to, [presence_probe]}]}],
gen_listener:add_queue(Self, QueueName, Options, Bindings)
end),
{ok, []}.

0 comments on commit d9d2256

Please sign in to comment.