Skip to content

Commit

Permalink
Fixing optional callback
Browse files Browse the repository at this point in the history
  • Loading branch information
Janusz Jakubiec authored and Janusz Jakubiec committed Oct 27, 2021
1 parent ea8afc2 commit 14f8f2f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/offline/mod_offline_backend.erl
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,9 @@ remove_user(HostType, LUser, LServer) ->
-spec remove_domain(mongooseim:host_type(), jid:lserver()) -> ok.
remove_domain(HostType, LServer) ->
Args = [HostType, LServer],
mongoose_backend:call(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, Args).
case mongoose_backend:is_exported(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, 2) of
true ->
mongoose_backend:call(HostType, ?MAIN_MODULE, ?FUNCTION_NAME, Args);
false ->
ok
end.

0 comments on commit 14f8f2f

Please sign in to comment.