Skip to content

Commit

Permalink
Merge pull request #2 from Vagabond/missing-handle_cast
Browse files Browse the repository at this point in the history
Implement handle_cast
  • Loading branch information
archaelus committed Aug 20, 2011
2 parents 747e9d3 + 92bc5c4 commit 31e13b3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/gl_async_bully.erl
Expand Up @@ -433,6 +433,13 @@ handle_event({from_leader, Ldr, Event, {local_sync_reply, From, Reply}},
Else
end;

handle_event({cast, Cast}, StateName, State) ->
case ms_event(handle_cast, [Cast], State) of
{ok, NewState} ->
{next_state, StateName, NewState};
{stop, Reason, NewState} ->
{stop, Reason, NewState}
end;

handle_event(Msg, StateName, State) ->
?INFO("~p: ignored ~p", [StateName, Msg]),
Expand Down

0 comments on commit 31e13b3

Please sign in to comment.