diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2023-11-20 19:43:36 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2023-11-28 21:24:41 -0500 |
commit | 03f69cd81a129456a66e2deb03bc8b137504c179 (patch) | |
tree | 7d3aac3595c165a02a540643a4beb76bf21a4f8e /src | |
parent | ea2f6bc0f544132738c7f052ffcc586fa884a19a (diff) | |
download | kutter-03f69cd81a129456a66e2deb03bc8b137504c179.tar.gz kutter-03f69cd81a129456a66e2deb03bc8b137504c179.tar.xz kutter-03f69cd81a129456a66e2deb03bc8b137504c179.zip |
tmc: Query latest value during _init_registers()
The set_register() code may block, and it therefore may be possible
that the loop in _init_registers() could occur in parallel with other
updates. That could result in a "OrderedDict mutated during
iteration" error.
Avoid the error by querying the latest value during each iteration of
the loop.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions