Variable from stack was passed to lambda by reference
so the value could be invalid on lambda execution.
Issue was described in SETIZENVUL-1411
[Verification] 100% auto + manual TCT on TM1
Change-Id: I36543863eebd9f93cb22e1c5868884b7997656a8
Signed-off-by: Rafal Walczyna <r.walczyna@partner.samsung.com>
} else {
// As we stopped radio on first interrupt, we will release focus on second
LoggerD("Preparing to release focus");
- auto release_focus = [&manager]() {
+ auto release_focus = [manager]() {
ScopeLogger("Entered into asynchronous function, release_focus");
const auto sound_focus_err = sound_manager_release_focus(
manager->GetStreamInfo(), SOUND_STREAM_FOCUS_FOR_PLAYBACK, SOUND_BEHAVIOR_NONE, NULL);