From a25634f07a8d59d924e23e5a02ffd060a6757ce8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Tue, 4 Apr 2023 14:38:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Mysql/PDO.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mysql/PDO.php b/Mysql/PDO.php index 3372409..56179f4 100644 --- a/Mysql/PDO.php +++ b/Mysql/PDO.php @@ -59,6 +59,8 @@ class PDO implements StopHeartbeatCheck $this->read_timeout = $config['read_timeout'] ?? 10; $this->charset = $config['charset'] ?? 'utf8mb4'; $this->attributes = $config['attributes'] ?? []; + + $this->group = new WaitGroup(); } @@ -71,8 +73,6 @@ class PDO implements StopHeartbeatCheck $eventProvider = Kiri::getDi()->get(EventProvider::class); $eventProvider->on(OnWorkerExit::class, [$this, 'onWorkerExit']); $this->_timerId = Timer::tick(60000, [$this, 'check']); - - $this->group = new WaitGroup(); }