aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control.vala
diff options
context:
space:
mode:
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r--src/volume-control.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala
index 1ab4547..ad186a7 100644
--- a/src/volume-control.vala
+++ b/src/volume-control.vala
@@ -555,7 +555,8 @@ public class VolumeControl : Object
bool set_volume_internal (double volume)
{
- return_val_if_fail (context.get_state () == Context.State.READY, false);
+ if (context.get_state () != Context.State.READY)
+ return false;
if (_volume != volume) {
_volume = volume;