Index: src/squeezeplay/share/jive/slim/LocalPlayer.lua =================================================================== --- src/squeezeplay/share/jive/slim/LocalPlayer.lua (revision 7794) +++ src/squeezeplay/share/jive/slim/LocalPlayer.lua Thu Oct 01 13:44:13 CDT 2009 @@ -167,6 +167,10 @@ function needsMusicSource(self) + if not self.slimproto then + log:warn("no slimproto connection") + return false + end return not self.slimproto:isConnected() end @@ -177,6 +181,11 @@ function connectToServer(self, server) + if not self.slimproto then + log:warn("no slimproto connection") + return + end + -- close any previous connection self.slimproto:disconnect() @@ -193,12 +202,20 @@ function connectIp(self, serverip, slimserverip) + if not self.slimproto then + log:warn("no slimproto connection") + return + end self.slimproto:disconnect() self.slimproto:connectIp(serverip, slimserverip) end function disconnectFromServer(self) + if not self.slimproto then + log:warn("no slimproto connection") + return + end self.slimproto:disconnect() self.playback:stop() end @@ -211,6 +228,10 @@ function isConnected(self) + if not self.slimproto then + log:warn("no slimproto connection") + return + end return self.slimproto:isConnected() end