Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: avoid a dict-changed-size error
Windows 3.12 failed occasionally with this error: ``` @panopticon() def stop(self) -> None: """Stop this Tracer.""" if not self.sysmon_on: # In forking situations, we might try to stop when we are not # started. Do nothing in that case. return assert sys_monitoring is not None sys_monitoring.set_events(self.myid, 0) > for code in self.local_event_codes.values(): E RuntimeError: dictionary changed size during iteration ``` By setting self.sysmon_on=False before iteration, we lessen the chance of adding an item to the dict during the iteration.
- Loading branch information