Version 4.7.23

This commit is contained in:
Neo committed 2025-12-19 16:21:27 -08:00
1 parent 7124a02564
commit 25ddeb65d6
1791 files changed
+76990 -44452

No files matched your search

+8 -3
View File
@@ -47,9 +47,10 @@ class _Redis extends \IPS\Data\Store
{
try
{
$connection = \IPS\Redis::i()->connection('write');
$writeConnection = \IPS\Redis::i()->connection('write');
$readConnection = \IPS\Redis::i()->connection('read');
if( !$connection )
if( !$writeConnection OR !$readConnection )
{
throw new \RedisException;
}
@@ -127,7 +128,11 @@ class _Redis extends \IPS\Data\Store
}
catch( \RedisException $e )
{
\IPS\Redis::i()->resetConnection( $e );
/* Do not reset the connection if the decode failed */
if ( $e->getMessage() !== 'DECODE_ERROR' )
{
\IPS\Redis::i()->resetConnection( $e );
}
throw new \UnderflowException;
}