vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
384 stars 69 forks source link

Corner case "_devices[device_id].hit" erroneously set true in "_handleSetup(...)". #48

Closed pvint closed 5 years ago

pvint commented 6 years ago

Original report by M Hightower (Bitbucket: mhightower83, GitHub: mhightower83).


First, thank you for the fine work you do on fauxmoESP and ESPurna.

This issue is in commit 7442667 on the dev branch.

A corner case in the handling of _devices[device_id].hit.

I made this change in _nextUDPResponse():

    if (_discovering && client->remoteIP == _remoteIP)
        _devices[device_id].hit = true;

I think window for this problem is small; however, it grows as the number of devices grows.

pvint commented 5 years ago

Original comment by Xose Pérez (Bitbucket: [Xose Pérez](https://bitbucket.org/Xose Pérez), ).


This no longer applies