Skip to content

Commit

Permalink
Update: 修复
Browse files Browse the repository at this point in the history
  • Loading branch information
NHZEX committed Feb 16, 2024
1 parent 42c7f32 commit 06e4d39
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Components/redis/src/RedisManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,7 @@ public static function release(IRedisHandler $redis): void
{
throw new \RuntimeException('RedisHandler is not a valid connection center connection instance');
}
if (ConnectionStatus::Available === $connection->getStatus())
{
$connection->getManager()->releaseConnection($connection);
}
$connection->release();
self::unsetConnectionInstance($redis);
}

Expand Down

0 comments on commit 06e4d39

Please sign in to comment.