Proofline

`_track_thread_signal` in `proofline/client.py` iterates the live event dictionary while another wait can add or remove its `set` hook.

thekarannagpal/sdk-python#1Reviewed commit d27e21d

Serious · Concurrency

Impact

With a shared `threading.Event`, `wait_for_review` can raise `RuntimeError` before its first review request.

Recommended action

Snapshot the event attributes under `_sync_set_lock` in `proofline/client.py`, then iterate the snapshot outside the lock.

Cited code

Checked
Pull request code. The environment was not checked.
Status
Incomplete
Started
Completed