This commit is contained in:
as2252258@163.com
2021-09-06 02:03:18 +08:00
parent d8584132d2
commit c0e8e317ac
+2 -1
View File
@@ -4,6 +4,7 @@ namespace Database\Mysql;
use Exception;
use Http\Context\Context;
use Kiri\Abstracts\Logger;
use Kiri\Events\EventProvider;
use Kiri\Kiri;
use Kiri\Pool\StopHeartbeatCheck;
@@ -79,7 +80,7 @@ class PDO implements StopHeartbeatCheck
$this->_timer = Timer::tick(1000, function () {
try {
if (env('state','start') == 'exit') {
echo 'timer end.' . PHP_EOL;
Kiri::getDi()->get(Logger::class)->critical('timer end');
$this->stopHeartbeatCheck();
}
if (time() - $this->_last > 10 * 60) {