Skip to content

Commit

Permalink
continue looping
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon committed Dec 7, 2023
1 parent 34332f1 commit dbb279b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Jobs/PingInactiveConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public function handle(ChannelManager $channels): void
->each(function ($application) use ($channels, $pusher) {
foreach ($channels->for($application)->connections() as $connection) {
if ($connection->isActive()) {
return;
continue;
}

$pusher->ping($connection->connection());
Expand Down
2 changes: 1 addition & 1 deletion src/Jobs/PruneStaleConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function handle(ChannelManager $channels): void
->each(function ($application) use ($channels) {
foreach ($channels->for($application)->connections() as $connection) {
if (! $connection->isStale()) {
return;
continue;
}

$connection->send(json_encode([
Expand Down

0 comments on commit dbb279b

Please sign in to comment.