Permalink
Browse files

Fix typo and scoping problem

  • Loading branch information...
1 parent b4feaf6 commit 8358258c97a8354cf7016866263f5845f3b4edc0 David Reid committed Jun 30, 2010
Showing with 3 additions and 4 deletions.
  1. +3 −4 src/gen_bunny_mon.erl
View
@@ -37,7 +37,7 @@
{
consumer,
info,
- connection_pid,
+ connection_pid
}).
%% ------------------------------------------------------------------
@@ -75,7 +75,7 @@ get_state() ->
%% ------------------------------------------------------------------
init([ConnectFun]) ->
- {ok, #gen_bunny_mon{connect_fun=ConnectFun}}.
+ {okg, #gen_bunny_mon{connect_fun=ConnectFun}}.
handle_call(get_state, _From, State) ->
{reply, {ok, State}, State};
@@ -105,11 +105,10 @@ handle_info({'DOWN', ConnectionRef, process, _Object, _Info}, State) ->
{Connection, State1} = remove_connection(ConnectionRef, State),
ConsumerPid = Connection#connection.consumer,
+ ConnectionInfo = Connection#connection.info,
case is_process_alive(ConsumerPid) of
true ->
- ConnectionInfo = Connection#connection.info,
-
NotifyOnConnect = fun(Pids) ->
ConsumerPid ! {reconnected, Pids}
end,

0 comments on commit 8358258

Please sign in to comment.