Prevent NaN from causing problems with player timeout

This commit is contained in:
Albert Santoni 2015-04-29 12:58:32 -04:00
parent c72cdbc19d
commit 1215eb1895
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@
});
//Preventative code if the local and remote clocks are out of sync.
if (time_to_next_track_starts < 0) {
if (isNaN(time_to_next_track_starts) || time_to_next_track_starts < 0) {
time_to_next_track_starts = 0;
}