diff --git a/src/shared/vcp.c b/src/shared/vcp.c
index f0887ad..3216867 100644
--- a/src/shared/vcp.c
+++ b/src/shared/vcp.c
* the current one completes. This may skip over some volume changes,
* as it only sends a request for the final value.
*/
- if (vcp->volume == volume) {
+ if (vcp->pending_op.timeout_id) {
+ vcp->pending_op.volume = volume;
+ vcp->pending_op.resend = true;
+ return true;
+ } else if (vcp->volume == volume) {
/* Do not set to current value, as that doesn't generate
* a notification
*/
return true;
- } else if (vcp->pending_op.timeout_id) {
- vcp->pending_op.volume = volume;
- vcp->pending_op.resend = true;
- return true;
}
req.op = BT_VCS_SET_ABSOLUTE_VOL;