Version 4.7.23
This commit is contained in:
1 parent
7124a02564
commit
25ddeb65d6
1791 files changed
+76990
-44452
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user