Author: titmuss
Date: Wed Jun 18 04:24:23 2008
New Revision: 2586

URL: http://svn.slimdevices.com?rev=2586&root=Jive&view=rev
Log:
Bug: 6683
Description:
Don't send playerCurrent notifications when the server connects. If the server 
has been restarted the player may not have 
reconnected yet, and any subscriptions sent from jive will fail.


Modified:
    
7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/applets/SqueezeDiscovery/SqueezeDiscoveryApplet.lua
    
7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua

Modified: 
7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/applets/SqueezeDiscovery/SqueezeDiscoveryApplet.lua
URL: 
http://svn.slimdevices.com/7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/applets/SqueezeDiscovery/SqueezeDiscoveryApplet.lua?rev=2586&root=Jive&r1=2585&r2=2586&view=diff
==============================================================================
--- 
7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/applets/SqueezeDiscovery/SqueezeDiscoveryApplet.lua
 (original)
+++ 
7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/applets/SqueezeDiscovery/SqueezeDiscoveryApplet.lua
 Wed Jun 18 04:24:23 2008
@@ -437,12 +437,6 @@
 
        -- stop discovery, we have the player
        self:_setState('connected')
-
-       -- refresh the current player, this means that other applets don't
-       -- need to watch the server connection notifications
-       if currentPlayer then
-               Player:setCurrentPlayer(currentPlayer)
-       end
 end
 
 

Modified: 
7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua
URL: 
http://svn.slimdevices.com/7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua?rev=2586&root=Jive&r1=2585&r2=2586&view=diff
==============================================================================
--- 
7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua
 (original)
+++ 
7.1/branches/discovery-refactor/squeezeplay/src/squeezeplay/share/jive/slim/Player.lua
 Wed Jun 18 04:24:23 2008
@@ -312,7 +312,7 @@
                self.jnt:notify('playerPower', self, self.info.power)
        end
 
-       -- use tostring to handle nil case (in either)
+       -- Check if the player connected status has changed
        if oldInfo.connected ~= self.info.connected then
                if self.info.connected then
                        self.jnt:notify('playerConnected', self)

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

Reply via email to