Skip to content

Commit

Permalink
Merge pull request #124 from lazedo/KAZOO-1552
Browse files Browse the repository at this point in the history
KAZOO-1552 return correct running modules list
  • Loading branch information
k-anderson committed Oct 16, 2013
2 parents eeea2eb + 2758f06 commit 070c5b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions applications/crossbar/src/crossbar_bindings.erl
Expand Up @@ -213,9 +213,9 @@ maybe_init_mod(ModBin) ->
%% @end
%%--------------------------------------------------------------------
handle_call('modules_loaded', _, #state{bindings=Bs}=State) ->
Mods = lists:foldl(fun({_, _, MFs}, Acc) ->
[ K || {K, _} <- props:unique(queue:to_list(MFs))] ++ Acc
end, [], Bs),
Mods = ets:foldl(fun( {_, _, MFs, _}, Acc) ->
[ K || {K, _} <- props:unique(queue:to_list(MFs))] ++ Acc
end, [], ?MODULE),
{'reply', lists:usort(Mods), State};

handle_call('current_bindings', _, #state{bindings=Bs}=State) ->
Expand Down

0 comments on commit 070c5b7

Please sign in to comment.