spotify: Just check if we are connected, do not wait until timeout

This commit is contained in:
Thomas Adamcik 2013-04-30 00:21:10 +02:00
parent 2f825b34af
commit 02ea6ecb74

View File

@ -169,8 +169,6 @@ class SpotifyLibraryProvider(base.BaseLibraryProvider):
translator.to_mopidy_track(t) for t in results.tracks()])
future.set(search_result)
# Wait always returns None on python 2.6 :/
self.backend.spotify.connected.wait(self._timeout)
if not self.backend.spotify.connected.is_set():
logger.debug('Not connected: Spotify search cancelled')
return SearchResult(uri='spotify:search')