[gnome-music/wip/mschraal/asyncqueue-fixes: 21/29] asyncqueue: Remove recursive queueing




commit a0b2dee0027f053230d992589aba0c1bfc6370f5
Author: Marinus Schraal <mschraal gnome org>
Date:   Tue Sep 7 09:44:29 2021 +0200

    asyncqueue: Remove recursive queueing
    
    In 00e58ad04c timer based queueing was implemented. The recursive call
    was not removed however, resulting in spurious calls to queue.
    
    Remove the recurse queue call.

 gnomemusic/asyncqueue.py | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/gnomemusic/asyncqueue.py b/gnomemusic/asyncqueue.py
index 093a2664c..703bce629 100644
--- a/gnomemusic/asyncqueue.py
+++ b/gnomemusic/asyncqueue.py
@@ -94,11 +94,6 @@ class AsyncQueue(GObject.GObject):
             obj.disconnect(result_id)
             self._async_active_pool.pop(id(obj))
 
-            if len(self._async_pool) > 0:
-                key = list(self._async_pool.keys())[0]
-                args = self._async_pool.pop(key)
-                self.queue(*args)
-
         if len(self._async_pool) == 0:
             self._timeout_id = 0
             return GLib.SOURCE_REMOVE


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]