24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Return true or false from send() callback

Fixes #2209
This commit is contained in:
Evgeniy Khramtsov 2018-01-05 12:15:28 +03:00
parent 946754536c
commit fb07c9929a

View File

@ -114,7 +114,10 @@ get_node_by_id(Hash) ->
-spec send({atom(), node()}, term()) -> boolean().
send(Dst, Msg) ->
erlang:send(Dst, Msg).
case erlang:send(Dst, Msg, [nosuspend, noconnect]) of
ok -> true;
_ -> false
end.
-spec wait_for_sync(timeout()) -> ok.
wait_for_sync(Timeout) ->