[gnome-music/wip/mschraal/asyncqueue-fixes: 1/2] asyncqueue: Remove recursive queueing
- From: Marinus Schraal <mschraal src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/wip/mschraal/asyncqueue-fixes: 1/2] asyncqueue: Remove recursive queueing
- Date: Tue, 7 Sep 2021 08:10:13 +0000 (UTC)
commit 63a60bb994b3eda966fff7ef8f3754f5706cc3cc
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]