mirror of
https://github.com/maziggy/bambuddy.git
synced 2026-10-04 05:01:37 +02:00
The MQTT callback thread checked self._pending_kprofile_response before calling .set(), but the asyncio thread could clear it to None between the check and the use (TOCTOU race after get_kprofiles() timeout). Capture the event reference in a local variable to eliminate the race.