summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShobhit Adlakha <ShobhitAd@users.noreply.github.com>2021-06-01 13:02:14 -0700
committerGitHub <noreply@github.com>2021-06-01 13:02:14 -0700
commit5227a8451ea69e2680fede0acce2b26f02f258cd (patch)
tree032679a97ab61cec01c2d5783dbdee57f733a5c7
parent9ac9acdec6d82b280fca5286549ea904e7bc8b4c (diff)
downloadsdl_core-5227a8451ea69e2680fede0acce2b26f02f258cd.tar.gz
Fix thread stop method (#3712)
-rw-r--r--src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc b/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc
index 09ee931f40..310fca7aa3 100644
--- a/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc
+++ b/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc
@@ -366,7 +366,7 @@ void FromMicToFileRecorderThread::exitThreadMain() {
if (sleepThread_) {
SDL_LOG_DEBUG("Stop sleep thread\n");
- sleepThread_->stop();
+ sleepThread_->Stop(threads::Thread::kThreadStopDelegate);
}
SDL_LOG_TRACE("Set should be stopped flag\n");