Only stop PcmStream if JackStream is stopped

This commit is contained in:
Marcus Weseloh 2024-06-11 17:53:04 +02:00 committed by Johannes Pohl
parent 0f910db3fc
commit 41c86e65dc

View file

@ -211,8 +211,6 @@ void JackStream::tryConnect()
wait(read_timer_, 5s, [this] { tryConnect(); });
return;
}
PcmStream::start();
}
catch (exception& e)
{
@ -451,7 +449,6 @@ void JackStream::autoConnectPorts()
void JackStream::onJackShutdown()
{
LOG(ERROR, LOG_TAG) << "Jack has shut down, trying to connect again!\n";
PcmStream::stop();
ports_.clear();
client_ = nullptr;
wait(read_timer_, 1000ms, [this] { tryConnect(); });