mod_spam_filter: Fix previous simplification

This commit is contained in:
Holger Weiss 2019-07-13 15:01:07 +02:00
parent 7c1b83941c
commit b410f64f33
1 changed files with 3 additions and 1 deletions

View File

@ -262,7 +262,9 @@ handle_info(Info, State) ->
-spec terminate(normal | shutdown | {shutdown, term()} | term(), state()) -> ok.
terminate(Reason, #state{host = Host} = State) ->
?DEBUG("Stopping spam filter process for ~s: ~p", [Host, Reason]),
close_dump_file(State),
DumpFile = gen_mod:get_module_opt(Host, ?MODULE, spam_dump_file),
DumpFile1 = expand_host(DumpFile, Host),
close_dump_file(DumpFile1, State),
ejabberd_hooks:delete(reopen_log_hook, ?MODULE,
reopen_log, 50),
ejabberd_hooks:delete(s2s_receive_packet, Host, ?MODULE,