Skip to content

Commit

Permalink
fix "xpra info" race condition, copy the list before use
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@14615 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Dec 26, 2016
1 parent d33a2d9 commit ff836f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/xpra/server/window/window_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ def get_info(self):
info["mapped-at"] = ma
now = time.time()
cutoff = now-5
lde = [x for x in self.statistics.last_damage_events if x[0]>=cutoff]
lde = [x for x in list(self.statistics.last_damage_events) if x[0]>=cutoff]
dfps = 0
if lde:
dfps = len(lde) // 5
Expand Down

0 comments on commit ff836f5

Please sign in to comment.