fix issue#17
This commit is contained in:
parent
9bdbb84ed2
commit
570ca1aa78
|
@ -8,7 +8,9 @@
|
|||
stdlib,
|
||||
sasl,
|
||||
mnesia,
|
||||
goldrush,
|
||||
lager,
|
||||
syntax_tools,
|
||||
elog,
|
||||
compiler,
|
||||
{folsom, load},
|
||||
|
@ -32,8 +34,10 @@
|
|||
{app, sasl, [{incl_cond, include}]},
|
||||
{app, mnesia, [{incl_cond, include}]},
|
||||
{app, compiler, [{incl_cond, include}]},
|
||||
{app, goldrush, [{incl_cond, include}]},
|
||||
{app, lager, [{incl_cond, include}]},
|
||||
{app, elog, [{incl_cond, include}]},
|
||||
{app, syntax_tools, [{incl_cond, include}]},
|
||||
{app, folsom, [{incl_cond, include}]},
|
||||
{app, emqtt, [{mod_cond, app}, {incl_cond, include}]}
|
||||
]}.
|
||||
|
|
|
@ -78,6 +78,8 @@ match(Topic) when is_list(Topic) ->
|
|||
Names = [Name || #trie_node{topic=Name} <- TrieNodes, Name=/= undefined],
|
||||
lists:flatten([mnesia:dirty_read(topic, Name) || Name <- Names]).
|
||||
|
||||
%TODO: this api is really ugly
|
||||
|
||||
down(Client) when is_pid(Client) ->
|
||||
gen_server2:cast(?MODULE, {down, Client}).
|
||||
|
||||
|
|
Loading…
Reference in New Issue