From 06367d1c8d9f2238f23b29210bb2434917d2c7c2 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Wed, 1 Oct 2014 11:20:51 -0500 Subject: Can get set at startup before we have a PA connection, shouldn't be a critical in that case, should just fail --- src/volume-control.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/volume-control.vala') 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; -- cgit v1.2.3