diff --git a/System/Pool/ObjectPool.php b/System/Pool/ObjectPool.php index 620b8d3e..a62b6a58 100644 --- a/System/Pool/ObjectPool.php +++ b/System/Pool/ObjectPool.php @@ -34,6 +34,9 @@ class ObjectPool extends \Snowflake\Abstracts\Pool */ public function getConnection(array $config, bool $isMaster): mixed { + if (is_object($config[0])) { + return $config[0]; + } return $this->get(md5($config[0]), $config); }