diff --git a/src/Mysql/PDO.php b/src/Mysql/PDO.php index 3b672b7..3825e6d 100644 --- a/src/Mysql/PDO.php +++ b/src/Mysql/PDO.php @@ -80,6 +80,7 @@ class PDO implements StopHeartbeatCheck try { if (env('state') == 'exit') { echo 'timer end.' . PHP_EOL; + $this->stopHeartbeatCheck(); } if (time() - $this->_last > 10 * 60) { $this->stopHeartbeatCheck();