From d5ae14a88eecad3e6ccefd18ac3b1896af9c81a1 Mon Sep 17 00:00:00 2001 From: chaz6chez Date: Tue, 8 Oct 2024 20:13:35 +0800 Subject: [PATCH] fix: SwooleEventTest.php --- src/Events/SwooleEvent.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Events/SwooleEvent.php b/src/Events/SwooleEvent.php index d5c19f3..e086b5c 100644 --- a/src/Events/SwooleEvent.php +++ b/src/Events/SwooleEvent.php @@ -70,6 +70,7 @@ public function add($fd, $flag, $func, $args = []) $this->_timerId--; return false; } + $this->_timer[$timerId] = $res; return $timerId; case EventInterface::EV_READ: