Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

WHISTLE-1441: let agent listener know fsm started

  • Loading branch information...
commit 0e120e7a630f34392a028a1c8dd688228f605bf9 1 parent 8139331
@jamesaimonetti jamesaimonetti authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 whistle_apps/apps/acdc/src/acdc_agent_fsm.erl
View
4 whistle_apps/apps/acdc/src/acdc_agent_fsm.erl
@@ -313,11 +313,15 @@ wait_for_listener(Supervisor, FSM, Props) ->
%%--------------------------------------------------------------------
wait({listener, AgentProc, NextState, SyncRef}, State) ->
lager:debug("setting agent proc to ~p", [AgentProc]),
+ acdc_agent:fsm_started(AgentProc, self()),
{next_state, NextState, State#state{
agent_proc=AgentProc
,sync_ref=SyncRef
,agent_proc_id=acdc_util:proc_id(AgentProc)
}};
+wait(send_sync_event, State) ->
+ gen_fsm:send_event(self(), send_sync_event),
+ {next_state, wait, State};
wait(_Msg, State) ->
lager:debug("unhandled msg in wait: ~p", [_Msg]),
{next_state, wait, State}.
Please sign in to comment.
Something went wrong with that request. Please try again.