[gnome-music] Ensure that there is a timeout before removing it on button press
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] Ensure that there is a timeout before removing it on button press
- Date: Wed, 5 Jun 2013 16:26:42 +0000 (UTC)
commit 6d4c0be1eae7d54878a8dee2e1da89dfdb2d1762
Author: Arnel A. Borja <kyoushuu yahoo com>
Date: Wed Jun 5 23:54:05 2013 +0800
Ensure that there is a timeout before removing it on button press
https://bugzilla.gnome.org/show_bug.cgi?id=701658
src/player.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/player.js b/src/player.js
index 18c4b05..c341e12 100644
--- a/src/player.js
+++ b/src/player.js
@@ -320,7 +320,10 @@ const Player = new Lang.Class({
this._lastState = this.player.get_state(1)[1];
this.player.set_state(Gst.State.PAUSED);
this._updatePositionCallback();
- GLib.source_remove(this.timeout);
+ if (this.timeout) {
+ GLib.source_remove(this.timeout);
+ this.timeout = null;
+ }
return false;
}));
this.progressScale.connect("value-changed", Lang.bind(this,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]