1
0
mirror of https://github.com/gryf/gryf-overlay.git synced 2025-12-28 09:22:33 +01:00
Files
gryf-overlay/media-plugins/xmms-scrobbler/files/scrobbler.c.patch
2010-02-09 21:25:29 +01:00

25 lines
421 B
Diff

--- orig/scrobbler.c
+++ mod/scrobbler.c
@@ -488,6 +488,7 @@
{
GString *submitentry;
int nsubmit;
+ int i;
int wait;
if(sc_submit_timeout < time(NULL) && sc_bad_users < 3)
@@ -512,7 +513,12 @@
pthread_mutex_lock(&mutex);
#ifdef ALLOW_MULTIPLE
- q_free();
+ if (nsubmit < q_len()) {
+ for (i=0; i<nsubmit; i++)
+ q_get();
+ } else {
+ q_free();
+ }
#else
q_get();
#endif