[rhythmbox: 1/5] listenbrainz: remove batch submission on queue activation




commit 1759bd2fb43ea42aff29cef5012558764d5f16b8
Author: Philipp Wolfer <ph wolfer gmail com>
Date:   Sat Sep 3 18:18:01 2022 +0200

    listenbrainz: remove batch submission on queue activation
    
    This was running a network call on the main thread, potentially blocking RB. As the submission is 
performed in intervals anyway this is not really needed, so just remove the initial call completely.
    
    Fixes #1818

 plugins/listenbrainz/queue.py | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/plugins/listenbrainz/queue.py b/plugins/listenbrainz/queue.py
index 5790b85fb..4a5020960 100644
--- a/plugins/listenbrainz/queue.py
+++ b/plugins/listenbrainz/queue.py
@@ -37,7 +37,6 @@ class ListenBrainzQueue:
         self.__queue = []
 
     def activate(self):
-        self.submit_batch()
         self.__timeout_id = GLib.timeout_add_seconds(30, self.submit_batch)
 
     def deactivate(self):


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