chiark
/
gitweb
/
~mdw
/
disorder
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6735af5
)
disobedience/queue.c: Don't ramp up network activity when not playing.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 2 Jun 2020 01:53:29 +0000
(
02:53
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Wed, 3 Jun 2020 20:49:07 +0000
(21:49 +0100)
If you paused the current track, or disabled playing, then Disobedience
would send a `queue' command every second, eating about 2.5 kB/s of
network for no good reason. Fix this.
disobedience/queue.c
patch
|
blob
|
blame
|
history
diff --git
a/disobedience/queue.c
b/disobedience/queue.c
index 95ff0d5efe73d05beb9874b8f9a51c0ff16eea28..748b8e33fababe3fbeb330b5cacf783a79da51d6 100644
(file)
--- a/
disobedience/queue.c
+++ b/
disobedience/queue.c
@@
-140,7
+140,7
@@
static gboolean playing_periodic(gpointer attribute((unused)) data) {
* do it once a minute then the rest of the queue can get out of date too
* easily.) */
struct queue_entry *q = ql_queue.q;
- if(q) {
+ if(q
&& playing_track && !(last_state&(DISORDER_TRACK_PAUSED))
) {
if(q == playing_track)
q = q->next;
if(q) {