This commit is contained in:
2021-08-17 18:55:49 +08:00
parent d5f9df7a08
commit 9418f82926
+1
View File
@@ -75,6 +75,7 @@ class PDO
$this->_timer = Timer::tick(1000, function () { $this->_timer = Timer::tick(1000, function () {
try { try {
if (env('state') == 'exit') { if (env('state') == 'exit') {
echo 'timer end.' . PHP_EOL;
$this->stopHeartbeatCheck(); $this->stopHeartbeatCheck();
} }
if (time() - $this->_last > 10 * 60) { if (time() - $this->_last > 10 * 60) {