diff --git a/Connection.php b/Connection.php index 27606cc..1019dd9 100644 --- a/Connection.php +++ b/Connection.php @@ -108,11 +108,11 @@ class Connection extends Component } $name = $connections->name('Mysql:' . $this->cds, true); for ($i = 0; $i < $pool; $i++) { - $connections->release($name, $connections->create($name, $config)()); + $connections->addItem($name, $connections->create($name, $config)()); } $name = $connections->name('Mysql:' . $this->cds, false); for ($i = 0; $i < $pool; $i++) { - $connections->release($name, $connections->create($name, $config)()); + $connections->addItem($name, $connections->create($name, $config)()); } }