From b79513757b080d41521ee6a81b07d98301c63fff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 8 Jun 2022 14:32:20 +0800 Subject: [PATCH] modify plugin name --- RpcJsonp.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/RpcJsonp.php b/RpcJsonp.php index a10b0ee..0b1e949 100644 --- a/RpcJsonp.php +++ b/RpcJsonp.php @@ -42,7 +42,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa { - private int $timerId; + private int $timerId = -1; /** @@ -134,7 +134,9 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa */ public function onWorkerExit(OnWorkerExit $exit): void { - Timer::clear($this->timerId); + if ($this->timerId) { + Timer::clear($this->timerId); + } }