Skip to content

Commit

Permalink
Restored default playing action on applyPreset
Browse files Browse the repository at this point in the history
  • Loading branch information
jishi committed Jan 11, 2015
1 parent 893b49c commit 948dac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sonos.js
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ Discovery.prototype.applyPreset = function (preset, callback) {
}

async.series(asyncSeries, function (err, result) {
if (preset.state && preset.state.toLowerCase() == "playing")
if (!preset.state || preset.state.toLowerCase() == "playing")
coordinator.play(function (success) {
if (callback instanceof Function)
callback(success ? null : 'error on play', result);
Expand Down

0 comments on commit 948dac6

Please sign in to comment.