summaryrefslogtreecommitdiff
path: root/src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc')
-rw-r--r--src/components/media_manager/src/audio/from_mic_to_file_recorder_thread.cc6
1 files changed, 3 insertions, 3 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 877722fd70..5599743bd3 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
@@ -69,8 +69,8 @@ FromMicToFileRecorderThread::FromMicToFileRecorderThread(
FromMicToFileRecorderThread::~FromMicToFileRecorderThread() {
LOG4CXX_AUTO_TRACE(logger_);
if (sleepThread_) {
- sleepThread_->join();
- delete sleepThread_->delegate();
+ sleepThread_->Stop(threads::Thread::kThreadSoftStop);
+ delete sleepThread_->GetDelegate();
threads::DeleteThread(sleepThread_);
}
}
@@ -276,7 +276,7 @@ void FromMicToFileRecorderThread::threadMain() {
sleepThread_ =
threads::CreateThread("SleepThread", new SleepThreadDelegate(timeout));
- sleepThread_->start();
+ sleepThread_->Start();
}
loop = g_main_loop_new(NULL, FALSE);