]> kaliko git repositories - mpd-sima.git/blobdiff - sima/client.py
Attempt to fix AttributeError issue
[mpd-sima.git] / sima / client.py
index 667242cc7ab569a4cb94792e26550a8de4e5526c..06ba8961e8a6bcb305fbafd3912986bcd366efaa 100644 (file)
@@ -144,11 +144,12 @@ class PlayerClient(Player):
         return ans
 
     def __skipped_track(self, old_curr):
+        curr = self.current
         if (self.state == 'stop'
             or not hasattr(old_curr, 'id')
-            or not hasattr(self.current, 'id')):
+            or not hasattr(curr, 'id')):
             return False
-        return self.current.id != old_curr.id  # pylint: disable=no-member
+        return curr.id != old_curr.id  # pylint: disable=no-member
 
     def _flush_cache(self):
         """