Merge pull request #1751 from terry-xiaoyu/emqx30_ut

bug fixes during UT
This commit is contained in:
Shawn 2018-08-28 00:31:15 +08:00 committed by GitHub
commit 8925209f91
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ handle_call({unregister_mod, Type, Mod}, _From, State) ->
reply(case lists:keyfind(Mod, 1, Mods) of reply(case lists:keyfind(Mod, 1, Mods) of
false -> false ->
{error, not_found}; {error, not_found};
true -> {Mod, _ModState, _Seq} ->
ets:insert(?TAB, {tab_key(Type), lists:keydelete(Mod, 1, Mods)}), ok ets:insert(?TAB, {tab_key(Type), lists:keydelete(Mod, 1, Mods)}), ok
end, State); end, State);