瀏覽代碼

取消定时器修改

master
AICells 5 年之前
父節點
當前提交
bd88d166d6
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. +3
    -1
      src/gen_ipc.erl

+ 3
- 1
src/gen_ipc.erl 查看文件

@ -1810,9 +1810,11 @@ cancelTimer(TimeoutType, TimerRef, Timers) ->
false ->
%% 找不到计时器,我们还没有看到超时消息
receive
{TimeoutType, TimerRef, _Msg} ->
{timeout, TimerRef, TimeoutType} ->
%% 丢弃该超时消息
ok
after 0 ->
ok
end;
_ ->
%% Timer 已经运行了

Loading…
取消
儲存