Skip to content

Commit

Permalink
Merge pull request #675 from ultrabug/frame-bugfix
Browse files Browse the repository at this point in the history
frame: fix possible race
  • Loading branch information
ultrabug committed Jan 17, 2017
2 parents b042785 + 0bb8d29 commit b44847b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion py3status/modules/frame.py
Expand Up @@ -99,7 +99,9 @@ def frame(self):
if out and 'separator' not in out[-1]:
# we copy the item as we do not want to change the
# original.
out[-1] = out[-1].copy()['separator'] = True
last_item = out[-1].copy()
last_item['separator'] = True
out[-1] = last_item
else:
if self.format_separator:
out += [{'full_text': self.format_separator}]
Expand Down

0 comments on commit b44847b

Please sign in to comment.