From bd88d166d67c4d62a12ba98cd9c5423441a05cb3 Mon Sep 17 00:00:00 2001 From: AICells <1713699517@qq.com> Date: Mon, 23 Dec 2019 00:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E5=AE=9A=E6=97=B6=E5=99=A8?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gen_ipc.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gen_ipc.erl b/src/gen_ipc.erl index b3bf4ee..ab63607 100644 --- a/src/gen_ipc.erl +++ b/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 已经运行了