Skip to content

Commit

Permalink
changes catch in horseman call - this is suspected to be the reason f…
Browse files Browse the repository at this point in the history
…or problems with fm4 processes sometimes continuing to run after horseman errors
  • Loading branch information
crohrer committed Nov 12, 2017
1 parent b10ce4b commit ced5d1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions radioCrawler.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ function getTracks(playlistName, trackserviceUrl){
.html()
.then(searchInHtml)
.then((tracks) => resolve(tracks))
.close()
.catch(() => {
logger.log('error requesting trackservice using horseman.', playlistName);
try {
Expand Down Expand Up @@ -90,7 +89,8 @@ function getTracks(playlistName, trackserviceUrl){
reject();
}

});
})
.close();
});

function searchInHtml(html){
Expand Down

0 comments on commit ced5d1b

Please sign in to comment.