summaryrefslogtreecommitdiff
path: root/apps/rexi/src/rexi_utils.erl
diff options
context:
space:
mode:
Diffstat (limited to 'apps/rexi/src/rexi_utils.erl')
-rw-r--r--apps/rexi/src/rexi_utils.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/rexi/src/rexi_utils.erl b/apps/rexi/src/rexi_utils.erl
index 1e8820e1..3b6102da 100644
--- a/apps/rexi/src/rexi_utils.erl
+++ b/apps/rexi/src/rexi_utils.erl
@@ -9,11 +9,11 @@ recv(Refs, Keypos, Fun, Acc0, infinity, PerMsgTO) ->
process_mailbox(Refs, Keypos, Fun, Acc0, nil, PerMsgTO);
recv(Refs, Keypos, Fun, Acc0, GlobalTimeout, PerMsgTO) ->
TimeoutRef = erlang:make_ref(),
- {ok, TRef} = erlang:send_after(GlobalTimeout, self(), {timeout, TimeoutRef}),
+ TRef = erlang:send_after(GlobalTimeout, self(), {timeout, TimeoutRef}),
try
process_mailbox(Refs, Keypos, Fun, Acc0, TimeoutRef, PerMsgTO)
after
- timer:cancel(TRef)
+ erlang:cancel_timer(TRef)
end.
process_mailbox(RefList, Keypos, Fun, Acc0, TimeoutRef, PerMsgTO) ->