summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2010-01-06 22:36:30 +0100
committerhut <hut@lavabit.com>2010-01-06 22:36:30 +0100
commit8e3271377f10c57ccadc33e5ca58ed91d0d55da6 (patch)
treeab13acf415660b19f1531511e21fbb64ebbe43ef
parent3868dfd0972e7cdc651860412bf728a9277e229c (diff)
downloadranger-8e3271377f10c57ccadc33e5ca58ed91d0d55da6.tar.gz
loader: don't pop items from queue which were added while loading
-rw-r--r--ranger/fsobject/loader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/fsobject/loader.py b/ranger/fsobject/loader.py
index 674af1f3..8eb1e1a7 100644
--- a/ranger/fsobject/loader.py
+++ b/ranger/fsobject/loader.py
@@ -103,7 +103,7 @@ class Loader(FileManagerAware):
 				next(item.load_generator)
 		except StopIteration:
 			item.load_generator = None
-			self.queue.popleft()
+			self.queue.remove(item)
 		except Exception as err:
 			self.fm.notify(str(err), bad=True)