commit 2fbb6587df357583fe03b8616d7b95f79382af20
Author: Kevin Benton <email address hidden>
Date: Sat Jun 11 08:23:48 2016 -0700
Allow self-unsubscribing callbacks
This adjusts the notify loop logic to handle the case where
a callback causes a subscription or unsubscription that changes
the subscriber dictionary to change during iteration.
It was just using .items() which solved the problem for py27 but
was not creating an actual copy in py34. This just calls list()
on .items() to make sure we get a list in both cases.
Reviewed: https:/ /review. openstack. org/330209 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=2fbb6587df3 57583fe03b8616d 7b95f79382af20
Committed: https:/
Submitter: Jenkins
Branch: master
commit 2fbb6587df35758 3fe03b8616d7b95 f79382af20
Author: Kevin Benton <email address hidden>
Date: Sat Jun 11 08:23:48 2016 -0700
Allow self-unsubscribing callbacks
This adjusts the notify loop logic to handle the case where
a callback causes a subscription or unsubscription that changes
the subscriber dictionary to change during iteration.
It was just using .items() which solved the problem for py27 but
was not creating an actual copy in py34. This just calls list()
on .items() to make sure we get a list in both cases.
Change-Id: Iee9d675faf30ec 714b4f5c77128d8 843d545ecfd
Closes-Bug: #1592983