From 948dac694d8aea8a78ce98f4c07182ae2595a2c3 Mon Sep 17 00:00:00 2001 From: Jimmy Shimizu Date: Sun, 11 Jan 2015 22:25:28 +0100 Subject: [PATCH] Restored default playing action on applyPreset --- lib/sonos.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sonos.js b/lib/sonos.js index e63ed99f..0b4f036f 100644 --- a/lib/sonos.js +++ b/lib/sonos.js @@ -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);