Skip to content

Commit

Permalink
Fixing #100 ghost current track
Browse files Browse the repository at this point in the history
  • Loading branch information
jaedb committed Jun 7, 2016
1 parent 0f03a73 commit 16666d8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/app/player/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ angular.module('spotmop.services.player', [])
**/
$interval(
function(){
if( state.playing && typeof(state.currentTlTrack) !== 'undefined' && state.playPosition < state.currentTlTrack.track.length ){
if( state.playing && typeof(state.currentTlTrack) !== 'undefined' && typeof(state.currentTlTrack.track) !== 'undefined' && state.playPosition < state.currentTlTrack.track.length ){
state.playPosition += 1000;
}
},
Expand Down Expand Up @@ -398,8 +398,7 @@ angular.module('spotmop.services.player', [])
state.playing = false;
},

next: function(){
MopidyService.play();
next: function(){
MopidyService.next();
},

Expand Down

0 comments on commit 16666d8

Please sign in to comment.