Skip to content

Commit 68e46e0

Browse files
committed
fixed muted state incorrectly updating even if the request failed backpush to 1.1.0.4
1 parent 5b7bfec commit 68e46e0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/library/wrapper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,9 @@ class Wrapper extends EventEmitter {
786786
const lastVolumePercent = this.#lastVolumePercent
787787

788788
return this.#setPlaybackVolume(0, deviceId).then(response => {
789-
this.#setMuted(lastVolumePercent)
789+
if (response === constants.WRAPPER_RESPONSE_SUCCESS)
790+
this.#setMuted(lastVolumePercent)
791+
790792
return response
791793
})
792794
}

0 commit comments

Comments
 (0)