contrib/gpio-mpd-rpi: improves debug when server has problems
authorAlexis Laferrière <alexis.laf@xymus.net>
Fri, 23 Aug 2013 12:34:06 +0000 (08:34 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 24 Aug 2013 13:40:29 +0000 (09:40 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

contrib/physical_interface_for_mpd_on_rpi/physical_interface_for_mpd_on_rpi.nit

index 455d109..ded48fb 100644 (file)
@@ -348,7 +348,10 @@ do
        var status = mpd.status
        var playing = false
        if status != null then
-               playing = status.state == "play"
+               playing = status.playing
+       else
+               print "Cannot get state"
+               return
        end
 
        if playing then