Use util to properly clear arrays
This commit is contained in:
@@ -218,7 +218,7 @@ function getRadioStationData(radioStationId) {
|
||||
|
||||
function reloadAllRadioStationsCommand(command, params, client) {
|
||||
stopRadioStreamForPlayer(null);
|
||||
getServerData().radioStations.splice(0, getServerData().radioStations.length-1);
|
||||
clearArray(getServerData().radioStations);
|
||||
getServerData().radioStations = loadRadioStationsFromDatabase();
|
||||
setRadioStationIndexes();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user