From 8d1c0d056f37e50b8f542923245f35364af4afd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 13 Feb 2023 14:37:07 +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 --- Connection.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/Connection.php b/Connection.php index db2c80f..8caae8f 100644 --- a/Connection.php +++ b/Connection.php @@ -271,9 +271,6 @@ class Connection extends Component */ public function release(PDO $pdo, bool $isMaster) { - if (!Context::inCoroutine()) { - return; - } $connections = $this->connection; if (!$isMaster) { $connections->addItem(($this->slaveConfig['cds'] ?? $this->cds) . 'slave', $pdo);