universal7885: fm-aidl: Call std:🧵:detach()

To run without being terminated because thread ref is no longer there
This commit is contained in:
roynatech2544 2022-10-23 14:14:03 +09:00
commit 666b99ecec
2 changed files with 2 additions and 0 deletions

View file

@ -128,6 +128,7 @@ namespace aidl::vendor::eureka::hardware::fmradio {
const std::lock_guard<std::timed_mutex> guard(lock);
freqs_list = fm_radio_slsi::get_freqs(fd);
});
search_thread.detach();
break;
default:
break;

View file

@ -109,6 +109,7 @@ constexpr const char *FM_FREQ_SEEK = FM_SYSFS_BASE "/radio_freq_seek";
freqs_list.push_back(freq);
}
});
search_thread.detach();
break;
default:
break;