aboutsummaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-10-15 04:05:12 +0300
committerkaotisk <kaotisk@arching-kaos.org>2024-10-15 04:05:12 +0300
commit3e5fbc779b30607d3eedb8fdbd7ddbee9f65bcf0 (patch)
tree59ea0fe9690c19ea2effe7d55352897d2b9b936e /client
parent589238e623c44c66cfd0b6d5f6da3f5f2cf707e3 (diff)
downloadarching-kaos-radio-3e5fbc779b30607d3eedb8fdbd7ddbee9f65bcf0.tar.gz
arching-kaos-radio-3e5fbc779b30607d3eedb8fdbd7ddbee9f65bcf0.tar.bz2
arching-kaos-radio-3e5fbc779b30607d3eedb8fdbd7ddbee9f65bcf0.zip
Possible fix
Diffstat (limited to 'client')
-rw-r--r--client/js/radio_emulator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/js/radio_emulator.js b/client/js/radio_emulator.js
index 12e6c67..9ea8324 100644
--- a/client/js/radio_emulator.js
+++ b/client/js/radio_emulator.js
@@ -305,7 +305,7 @@ function listCallback(json, params)
debugLog('First!');
break;
}
- else if ( values.now_on_sequence > json.list[i].starts_on && values.now_on_sequence > json.list[i].starts_on)
+ else if ( values.now_on_sequence > json.list[i].starts_on && i === json.list.length - 1 )
{
values.now_on_sequence = values.now_on_sequence - json.list[i].starts_on;
FetchJSON(`${jsonRequest}${json.list[i].hash}`, loadShowCallback, [json, values.now_on_sequence, json.list[i], hash_of_list]);