Fixed possible errors with null values

This commit is contained in:
Alex Renoki 2020-09-06 19:44:35 +03:00
parent 4fea039855
commit 3ce55575a0
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ class RedisStatisticsLogger implements StatisticsLogger
$this->channelManager
->getGlobalConnectionsCount($appId)
->then(function ($currentConnectionCount) use ($appId) {
$currentConnectionCount === 0
$currentConnectionCount === 0 || is_null($currentConnectionCount)
? $this->resetAppTraces($appId)
: $this->resetStatistics($appId, $currentConnectionCount);
});