mirror of
https://github.com/Icinga/icingadb-web.git
synced 2026-05-28 04:36:06 -04:00
parent
f6e808bac1
commit
cd41a207a1
1 changed files with 6 additions and 2 deletions
|
|
@ -44,8 +44,12 @@ class IcingaRedis
|
|||
{
|
||||
$self = self::instance();
|
||||
|
||||
if ($self->redis === null) {
|
||||
$self->getConnection();
|
||||
if (! $self->redisUnavailable && $self->redis === null) {
|
||||
try {
|
||||
$self->getConnection();
|
||||
} catch (Exception $_) {
|
||||
// getConnection already logs the error
|
||||
}
|
||||
}
|
||||
|
||||
return $self->redisUnavailable;
|
||||
|
|
|
|||
Loading…
Reference in a new issue