Permalink
Browse files

Add handle_info clause.

  • Loading branch information...
1 parent 19299a0 commit 1f8c7f61d82111ae3ed951b464fec586de46188e @vjache committed Jan 9, 2012
Showing with 7 additions and 2 deletions.
  1. +7 −2 src/logmachine_emlocator_srv.erl
@@ -68,8 +68,7 @@ init({locator, InstanceName}) ->
end.
handle_call(_Request, _From, State) ->
- Reply = ok,
- {reply, Reply, State}.
+ {reply, unsupported, State}.
handle_cast(Msg, State) ->
handle_info(Msg, State).
@@ -86,6 +85,12 @@ handle_info({'EXIT', Pid, _Reason}, #state{}=State) ->
{noreply, State};
handle_info({nodedown, _Node, _InfoList}, State) ->
% Node down report
+ {noreply, State};
+handle_info({nodedown, _Node}, State) ->
+ % Node down report
+ {noreply, State};
+handle_info(_Msg, State) ->
+ % Ignore message
{noreply, State}.
terminate(_Reason, _State) ->

0 comments on commit 1f8c7f6

Please sign in to comment.