Skip to content

Commit

Permalink
Merge pull request #3371 from esl/mod-offline-optional-callback-fix
Browse files Browse the repository at this point in the history
Looks good, thanks for the fix
  • Loading branch information
gustawlippa committed Oct 27, 2021
2 parents f41d2e2 + 14f8f2f commit d106506
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 d106506

Please sign in to comment.