Skip to content

Commit

Permalink
fix dictionary changed size during iteration (#1894)
Browse files Browse the repository at this point in the history
  • Loading branch information
dirk-thomas authored Feb 21, 2020
1 parent 2b369c6 commit 05d7b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clients/rospy/src/rospy/topics.py
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ def check_all(self):
Check all registered publication and subscriptions.
"""
with self.lock:
for t in chain(iter(self.pubs.values()), iter(self.subs.values())):
for t in chain(list(self.pubs.values()), list(self.subs.values())):
t.check()

def _add(self, ps, rmap, reg_type):
Expand Down

0 comments on commit 05d7b47

Please sign in to comment.