Skip to content

Commit

Permalink
WHISTLE-856: handle a list of commands to execute
Browse files Browse the repository at this point in the history
  • Loading branch information
James Aimonetti committed May 23, 2012
1 parent a84d0b0 commit 8fa73b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ecallmgr/src/ecallmgr_call_command.erl
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ exec_cmd(Node, UUID, JObj, ControlPID) ->
{AppName, noop} ->
ecallmgr_call_control:event_execute_complete(ControlPID, UUID, AppName);
{AppName, AppData} ->
ecallmgr_util:send_cmd(Node, UUID, AppName, AppData)
ecallmgr_util:send_cmd(Node, UUID, AppName, AppData);
Apps when is_list(Apps) ->
[ecallmgr_util:send_cmd(Node, UUID, AppName, AppData) || {AppName, AppData} <- Apps]
end;
false ->
lager:debug("command ~s not meant for us but for ~s", [wh_json:get_value(<<"Application-Name">>, JObj), DestID]),
Expand Down

0 comments on commit 8fa73b7

Please sign in to comment.