modify plugin name
This commit is contained in:
+3
-1
@@ -42,7 +42,7 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
||||
{
|
||||
|
||||
|
||||
private int $timerId;
|
||||
private int $timerId = -1;
|
||||
|
||||
|
||||
/**
|
||||
@@ -134,8 +134,10 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
||||
*/
|
||||
public function onWorkerExit(OnWorkerExit $exit): void
|
||||
{
|
||||
if ($this->timerId) {
|
||||
Timer::clear($this->timerId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user