Skip to content

Commit

Permalink
Fixed bug that cleanUpExpiredOnce failed when sids is empty when us…
Browse files Browse the repository at this point in the history
…ing `socketio-server`. (#6185)
  • Loading branch information
limingxinleo authored Oct 5, 2023
1 parent b891872 commit 49ef140
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Room/RedisAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ public function cleanUpExpiredOnce(): void
foreach ($sids as $sid) {
$this->del($sid);
}
}

$this->redis->zRem($this->getExpireKey(), ...$sids);
$this->redis->zRem($this->getExpireKey(), ...$sids);
}
}

public function setTtl(int $ms): EphemeralInterface
Expand Down

0 comments on commit 49ef140

Please sign in to comment.