aboutsummaryrefslogtreecommitdiff
path: root/src/volume-control-pulse.vala
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-02-18 14:52:56 -0600
committerTed Gould <ted@gould.cx>2015-02-18 14:52:56 -0600
commitca51b91cc03c9e5169caea71e9691bb2345f6d82 (patch)
tree91af879ecf9506ce38dab3945346e341ee59920c /src/volume-control-pulse.vala
parente28612d2517942b3e5dc5648c0536e5384a66037 (diff)
downloadayatana-indicator-sound-ca51b91cc03c9e5169caea71e9691bb2345f6d82.tar.gz
ayatana-indicator-sound-ca51b91cc03c9e5169caea71e9691bb2345f6d82.tar.bz2
ayatana-indicator-sound-ca51b91cc03c9e5169caea71e9691bb2345f6d82.zip
Truthiness is a lost art
Diffstat (limited to 'src/volume-control-pulse.vala')
-rw-r--r--src/volume-control-pulse.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volume-control-pulse.vala b/src/volume-control-pulse.vala
index 39ff14c..403acec 100644
--- a/src/volume-control-pulse.vala
+++ b/src/volume-control-pulse.vala
@@ -614,7 +614,7 @@ public class VolumeControlPulse : VolumeControl
_volume = value;
/* Make sure we're connected to Pulse and pulse didn't give us the change */
- if (context.get_state () != Context.State.READY &&
+ if (context.get_state () == Context.State.READY &&
_volume.reason != VolumeControl.VolumeReasons.PULSE_CHANGE)
if (_pulse_use_stream_restore)
set_volume_active_role.begin ();