Wait for mopidy to load before connecting spotify

This commit is contained in:
James Barnsley
2017-09-11 08:37:37 +12:00
parent f625bfd3ca
commit cd8e6d0dc6
5 changed files with 26 additions and 14 deletions

View File

@ -23,10 +23,6 @@ const CoreMiddleware = (function(){
store.dispatch(pusherActions.connect())
store.dispatch(lastfmActions.connect())
if (store.getState().spotify.enabled){
store.dispatch(spotifyActions.connect())
}
next(action)
break