Skip to content
Browse files

WHISTLE-1225: reconnect on startup had tuple elements backward

  • Loading branch information...
1 parent 14ba5eb commit 241f964885fcf0d8ce0c133f04e476e3eb066592 @k-anderson k-anderson committed Aug 12, 2012
View
2 lib/whistle-1.0.0/src/gen_listener.erl
@@ -439,7 +439,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};
View
2 whistle_apps/apps/registrar/src/registrar_listener.erl
@@ -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 241f964

Please sign in to comment.
Something went wrong with that request. Please try again.