From 65d9c55ca47643b5ae1ea88c56d9f870748da11e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Sun, 6 Sep 2020 05:41:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Pool/Connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/System/Pool/Connection.php b/System/Pool/Connection.php index 737d3b55..cc4fee76 100644 --- a/System/Pool/Connection.php +++ b/System/Pool/Connection.php @@ -189,7 +189,7 @@ class Connection extends Pool public function getConnection(array $config, $isMaster = false) { if ($this->creates === 0) { - Timer::tick(10000, [$this, 'Heartbeat_detection']); + $this->creates = Timer::tick(10000, [$this, 'Heartbeat_detection']); } [$coroutineId, $coroutineName] = $this->getIndex($config['cds'], $isMaster); if (!isset($this->hasCreate[$coroutineName])) {