改名
This commit is contained in:
+5
-1
@@ -97,7 +97,11 @@ class RpcJsonp extends Component implements OnConnectInterface, OnReceiveInterfa
|
|||||||
if ($server->workerId != 0) {
|
if ($server->workerId != 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
Timer::tick(1000, static function () {
|
Timer::tick(1000, static function ($timeId) {
|
||||||
|
if (env('state', 'start') == 'exit') {
|
||||||
|
Timer::clear($timeId);
|
||||||
|
return;
|
||||||
|
}
|
||||||
Kiri::getDi()->get(RpcManager::class)->tick();
|
Kiri::getDi()->get(RpcManager::class)->tick();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user