Author: michael
Date: Mon Jan 18 09:43:57 2010
New Revision: 8365

URL: http://svn.slimdevices.com/jive?rev=8365&view=rev
Log:
Bug: n/a
Description: return immediately when pipe can't be opened

Modified:
    
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua?rev=8365&r1=8364&r2=8365&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay_fab4/share/applets/SqueezeCenter/SqueezeCenterApplet.lua
 Mon Jan 18 09:43:57 2010
@@ -1182,6 +1182,11 @@
        log:debug("pattern is ", pattern)
 
        local cmd = io.popen("/bin/ps -o pid,command")
+
+       if not cmd then
+               return nil
+       end
+
        for line in cmd:lines() do
                pid = string.match(line, pattern)
                if pid then break end

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to