Fixed possible errors with null values
This commit is contained in:
parent
4fea039855
commit
3ce55575a0
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue