modify plugin name

This commit is contained in:
2022-06-08 14:32:20 +08:00
parent b495927099
commit b79513757b
+4 -2
View File
@@ -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 public function onWorkerExit(OnWorkerExit $exit): void
{ {
Timer::clear($this->timerId); if ($this->timerId) {
Timer::clear($this->timerId);
}
} }