Skip to content

Commit

Permalink
X509\Sni: Ping DB connection before using it
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Sep 12, 2023
1 parent c02986e commit 8070d74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/Icingadb/ProvidedHook/X509/Sni.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8070d74

Please sign in to comment.