bug fixes during UT

This commit is contained in:
terry-xiaoyu 2018-08-28 00:27:45 +08:00
parent 88d867b256
commit c92eba4a5e
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
false ->
{error, not_found};
true ->
{Mod, _ModState, _Seq} ->
ets:insert(?TAB, {tab_key(Type), lists:keydelete(Mod, 1, Mods)}), ok
end, State);