Remove redundant check when stopping AudioInput

pull/10/head
michal.szwaj 2018-02-17 22:04:26 +01:00
parent 242a10d8fd
commit 42bcd1892c
1 changed files with 1 additions and 5 deletions

View File

@ -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();
});
}