diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-12-16 16:59:47 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-12-16 16:59:47 +0000 |
commit | 8c0170162372165f2517bdbfeadebcd960524a20 (patch) | |
tree | 0a82326c25db1f2534616fa14905c71287db0221 /src | |
parent | 3f7014afbcae2bb141b358ebf0b3cf036b08aa56 (diff) | |
parent | ce99ec3832eaca2d078dc6fb5a1bf3225cd87b7b (diff) | |
download | ayatana-indicator-sound-8c0170162372165f2517bdbfeadebcd960524a20.tar.gz ayatana-indicator-sound-8c0170162372165f2517bdbfeadebcd960524a20.tar.bz2 ayatana-indicator-sound-8c0170162372165f2517bdbfeadebcd960524a20.zip |
startup bug fixed
Diffstat (limited to 'src')
-rw-r--r-- | src/player-controller.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/player-controller.vala b/src/player-controller.vala index b5c2d76..97f5303 100644 --- a/src/player-controller.vala +++ b/src/player-controller.vala @@ -29,7 +29,7 @@ public class PlayerController : GLib.Object SEPARATOR, TITLE, METADATA, - TRANSPORT, + TRANSPORT } public enum state{ @@ -104,7 +104,7 @@ public class PlayerController : GLib.Object private void establish_mpris_connection() { - if(this.current_state != state.READY && this.dbus_name != null ){ + if(this.current_state != state.READY || this.dbus_name == null ){ debug("establish_mpris_connection - Not ready to connect"); return; } @@ -179,7 +179,7 @@ public class PlayerController : GLib.Object return result; } - public void determine_state() + private void determine_state() { if(this.mpris_bridge.connected() == true){ this.update_state(state.CONNECTED); |