2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-07-29 00:59:41 +00:00

Avoid set changed during iteration

This commit is contained in:
Jarrod Johnson
2025-07-01 15:45:24 -04:00
parent 05dbbd6ce0
commit 5028ed9f07
@@ -316,7 +316,7 @@ def snoop(handler, byehandler=None, protocol=None, uuidlookup=None):
if not mac:
continue
_process_snoop(peer, rsp, mac, known_peers, newmacs, peerbymacaddress, byehandler, machandlers, handler)
for mac in newmacs:
for mac in list(newmacs):
thehandler = machandlers.get(mac, None)
if thehandler:
thehandler(peerbymacaddress[mac])