modify plugin name
This commit is contained in:
+4
-2
@@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user