Author: titmuss
Date: Wed Oct 22 10:26:42 2008
New Revision: 3188

URL: http://svn.slimdevices.com?rev=3188&root=Jive&view=rev
Log:
Bug: 8159
Description:
Fix a couple of state transitions that may result in connection problems in 
SlimDiscovery.
Fix the case in bug 8159 comment #14. Note for me this did not result in 'dead' 
blue icon, it was possible to recover from this case 
by drilling into the menus or entering choose player.


Modified:
    
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SlimDiscovery/SlimDiscoveryApplet.lua
    
7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua

Modified: 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SlimDiscovery/SlimDiscoveryApplet.lua
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SlimDiscovery/SlimDiscoveryApplet.lua?rev=3188&root=Jive&r1=3187&r2=3188&view=diff
==============================================================================
--- 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SlimDiscovery/SlimDiscoveryApplet.lua
 (original)
+++ 
7.3/trunk/squeezeplay/src/squeezeplay/share/applets/SlimDiscovery/SlimDiscoveryApplet.lua
 Wed Oct 22 10:26:42 2008
@@ -427,7 +427,9 @@
        end
 
        -- start discovery looking for the player
-       self:_setState('searching')
+       if self.state == 'connected' then
+               self:_setState('searching')
+       end
 end
 
 
@@ -532,7 +534,7 @@
 function connectPlayer(self)
        local player = Player:getCurrentPlayer()
 
-       if currentPlayer and currentPlayer:getSlimServer() then
+       if currentPlayer and currentPlayer:isConnected() then
                self:_setState("connected")
        else
                self:_setState("searching")

Modified: 
7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua?rev=3188&root=Jive&r1=3187&r2=3188&view=diff
==============================================================================
--- 
7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
 (original)
+++ 
7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/SqueezeboxJive/SqueezeboxJiveApplet.lua
 Wed Oct 22 10:26:42 2008
@@ -1088,6 +1088,9 @@
                if not wirelessWasConnected and status and status.wpa_state
                        or (status.wpa_state == "COMPLETED" and 
status.ip_address and (not string.match(status.ip_address, "^169.254.") or 
zeroconf)) then
 
+                       -- restart discovery
+                       appletManager:callService("connectPlayer")
+
                        -- force connection to SlimServer
                        if wirelessWasConnected then
                                jnt:notify("networkConnected")

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

Reply via email to