Skip to content

Commit

Permalink
fix: Resolves #635, #633
Browse files Browse the repository at this point in the history
Pause before applying preset for announcement
Don't crash on Airplay streaming
  • Loading branch information
jishi committed Aug 1, 2018
1 parent 0b56621 commit ec8ff53
Show file tree
Hide file tree
Showing 3 changed files with 550 additions and 552 deletions.
4 changes: 3 additions & 1 deletion lib/helpers/preset-announcement.js
Expand Up @@ -72,7 +72,9 @@ function announcePreset(system, uri, preset, duration) {

const restoreTimeout = duration + 2000;
const coordinator = system.getPlayer(preset.players[0].roomName);
return system.applyPreset(simplifiedPreset)
return coordinator.pause()
.then(() => system.applyPreset(simplifiedPreset))
.catch(() => system.applyPreset(simplifiedPreset))
.then(() => {
if (hasReachedCorrectTopology(system.zones)) return;
return oneGroupPromise;
Expand Down

0 comments on commit ec8ff53

Please sign in to comment.