Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

Commit 3ce5557

Browse files
committed
Fixed possible errors with null values
1 parent 4fea039 commit 3ce5557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Statistics/Logger/RedisStatisticsLogger.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function save()
188188
$this->channelManager
189189
->getGlobalConnectionsCount($appId)
190190
->then(function ($currentConnectionCount) use ($appId) {
191-
$currentConnectionCount === 0
191+
$currentConnectionCount === 0 || is_null($currentConnectionCount)
192192
? $this->resetAppTraces($appId)
193193
: $this->resetStatistics($appId, $currentConnectionCount);
194194
});

0 commit comments

Comments
 (0)