mirror of https://github.com/f1xpl/openauto.git
Remove redundant check when stopping AudioInput
parent
242a10d8fd
commit
42bcd1892c
|
@ -50,11 +50,7 @@ void AudioInputService::stop()
|
|||
{
|
||||
strand_.dispatch([this, self = this->shared_from_this()]() {
|
||||
OPENAUTO_LOG(info) << "[AudioInputService] stop.";
|
||||
|
||||
if(audioInput_->isActive())
|
||||
{
|
||||
audioInput_->stop();
|
||||
}
|
||||
audioInput_->stop();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue