1. Vladimir Kolev
  2. gSharkDown

Commits

Vladimir Kolev  committed a2da4c0

A try block fixes the IndexError when removing downloads from the queue.
Probably should be removed, since the downloads are already removed before the check.

Still not sure why are theese random freezes when searching...

  • Participants
  • Parent commits 86a5e11
  • Branches refactoring

Comments (0)

Files changed (1)

File lib/tfuncs.py

View file
  • Ignore whitespace
     def _remove_download(self):
         self.win.downloads.remove(self.iter)
         for i in range(len(self.win.downqueue)):
-            if self.iter == self.win.downqueue[i]['iter']:
-                self.win.downqueue.pop(i)
+            try:
+                if self.iter == self.win.downqueue[i]['iter']:
+                    self.win.downqueue.pop(i)
+            except IndexError:
+                pass
         self.iter = None
         self.win.update_downloads_count()