smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
239 stars 245 forks source link

Check iterator before erase in ProcessResponseFromHMI #3919

Closed OlhaVorobiova closed 1 year ago

OlhaVorobiova commented 2 years ago

Fixes #3910

This PR is ready for review.

Risk

This PR makes no API changes.

Summary

In rare case, two threads try to process response from hmi with same correlation id and function id (from HandleOnEvent and HandleOnTimeOut)

CLA

OlhaVorobiova commented 2 years ago

@theresalech This PR is ready for Livio review.