diff options
author | Ted Gould <ted@gould.cx> | 2014-10-01 11:20:51 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-10-01 11:20:51 -0500 |
commit | 06367d1c8d9f2238f23b29210bb2434917d2c7c2 (patch) | |
tree | 23a4249f7102152ec0812c5092872dce22d731c0 /src/volume-control.vala | |
parent | 6f911c1d1ea7caa5031271eb9f2a3d295c492edc (diff) | |
download | ayatana-indicator-sound-06367d1c8d9f2238f23b29210bb2434917d2c7c2.tar.gz ayatana-indicator-sound-06367d1c8d9f2238f23b29210bb2434917d2c7c2.tar.bz2 ayatana-indicator-sound-06367d1c8d9f2238f23b29210bb2434917d2c7c2.zip |
Can get set at startup before we have a PA connection, shouldn't be a critical in that case, should just fail
Diffstat (limited to 'src/volume-control.vala')
-rw-r--r-- | src/volume-control.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/volume-control.vala b/src/volume-control.vala index 2efa186..afcca15 100644 --- a/src/volume-control.vala +++ b/src/volume-control.vala @@ -327,7 +327,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; |