From: Vincent Date: Fri, 23 Aug 2019 07:52:09 +0000 (+0200) Subject: . X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=d618c3a381ee879c285a6db0573f5e6839563fdb;p=tortuga-home.git . --- diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 48690fb..cfee259 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,12 +2,10 @@ - - - - + + diff --git a/scripts/lib/domoticz.php b/scripts/lib/domoticz.php index d7396db..a4a5303 100644 --- a/scripts/lib/domoticz.php +++ b/scripts/lib/domoticz.php @@ -17,7 +17,7 @@ function domoticzCmd($command, $priority = false) $redis = connectRedis(); $queue_name = 'domoticz_queue'; - $queue = $redis->get($queue_name); + $queue = $redis->igbget($queue_name); if (!is_array($queue)) { $queue = []; } diff --git a/scripts/lib/squeezebox.php b/scripts/lib/squeezebox.php index ede5f50..537fe71 100644 --- a/scripts/lib/squeezebox.php +++ b/scripts/lib/squeezebox.php @@ -34,7 +34,7 @@ function squeezeRequest($params, $player) $redis = connectRedis(); $queue_name = 'squeezebox_queue'; - $queue = $redis->get($queue_name); + $queue = $redis->igbget($queue_name); if (!is_array($queue)) { $queue = []; } diff --git a/scripts/lib/ssh.php b/scripts/lib/ssh.php index 25dc3ca..a73d548 100644 --- a/scripts/lib/ssh.php +++ b/scripts/lib/ssh.php @@ -39,9 +39,9 @@ function getSSHInstance($device = null, $sudo = false, $force = false) function sshCommand($command, $device = null, $blocking = true, $sudo = false) { - return sshRunCommand($command, $device, $blocking, $sudo); + //return sshRunCommand($command, $device, $blocking, $sudo); $redis = connectRedis(); - $queue = $redis->get('ssh_queue'); + $queue = $redis->igbget('ssh_queue'); if (!is_array($queue)) { $queue = []; }