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
1 changed files with 4 additions and 1 deletions

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) ->