Skip to content

Commit

Permalink
Fix gen_iq_handler:remove_iq_handler call in mod_matrix_gw
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeyshch committed Feb 21, 2025
1 parent 41232cc commit 7018b8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/mod_matrix_gw.erl
Original file line number Diff line number Diff line change
Expand Up @@ -543,10 +543,8 @@ handle_info(Info, State) ->
-spec terminate(term(), state()) -> any().
terminate(_Reason, #state{host = Host}) ->
unregister_routes([Host]),
gen_iq_handler:del_iq_handler(ejabberd_local, Host, ?NS_DISCO_INFO,
?MODULE, process_disco_info),
gen_iq_handler:del_iq_handler(ejabberd_local, Host, ?NS_DISCO_ITEMS,
?MODULE, process_disco_items).
gen_iq_handler:remove_iq_handler(ejabberd_local, Host, ?NS_DISCO_INFO),
gen_iq_handler:remove_iq_handler(ejabberd_local, Host, ?NS_DISCO_ITEMS).

-spec code_change(term(), state(), term()) -> {ok, state()}.
code_change(_OldVsn, State, _Extra) -> {ok, State}.
Expand Down

0 comments on commit 7018b8b

Please sign in to comment.