X509\Sni: Ping DB connection before using it

This commit is contained in:
Yonas Habteab 2023-09-04 13:46:23 +02:00 committed by Johannes Meyer
parent 84eeeaa57d
commit 9be9d072f1

View file

@ -22,6 +22,8 @@ class Sni extends SniHook
*/
public function getHosts(Filter $filter = null): Generator
{
$this->getDb()->ping();
$queryHost = Host::on($this->getDb());
$queryHost->getSelectBase();