Skip to content

Commit

Permalink
spooler -- HcamListSpoolwas destroying the list
Browse files Browse the repository at this point in the history
caused a crash in makefringe when the list was being  reused.
  • Loading branch information
trmrsh committed May 21, 2021
1 parent c58d6a0 commit c4ad845
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hipercam/spooler.py
Expand Up @@ -260,6 +260,7 @@ def __init__(self, lname, cnam=None):
self._file = True
else:
self._iter = lname
self._index = 0
self._file = False

self.cnam = cnam
Expand All @@ -281,7 +282,8 @@ def __next__(self):

else:
try:
fname = self._iter.pop(0)
fname = self._iter[self._index]
self._index += 1
except IndexError:
raise StopIteration

Expand Down

0 comments on commit c4ad845

Please sign in to comment.