From 36698d1ae6e38482af65bd2a0ac9bdc97f2bd04a Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Wed, 19 Sep 2012 02:03:47 +0200 Subject: [PATCH] Hack to fix random test failure With Pykka 0.16, test_status_method_when_playing_contains_time_with_length fails now and then because play_time_started is not initialized before it is used as an int. I'm allowing myself to fix this in the simplest way possible instead of tracking the issue down, since I'm already working on a refactor of the time position code. --- mopidy/core/playback.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mopidy/core/playback.py b/mopidy/core/playback.py index dfd1676e..31a1acc5 100644 --- a/mopidy/core/playback.py +++ b/mopidy/core/playback.py @@ -88,7 +88,7 @@ class PlaybackController(object): self._shuffled = [] self._first_shuffle = True self.play_time_accumulated = 0 - self.play_time_started = None + self.play_time_started = 0 def _get_cpid(self, cp_track): if cp_track is None: