mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-02 08:09:35 +02:00
Only stop PcmStream if JackStream is stopped
This commit is contained in:
parent
0f910db3fc
commit
41c86e65dc
1 changed files with 0 additions and 3 deletions
|
@ -211,8 +211,6 @@ void JackStream::tryConnect()
|
||||||
wait(read_timer_, 5s, [this] { tryConnect(); });
|
wait(read_timer_, 5s, [this] { tryConnect(); });
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
PcmStream::start();
|
|
||||||
}
|
}
|
||||||
catch (exception& e)
|
catch (exception& e)
|
||||||
{
|
{
|
||||||
|
@ -451,7 +449,6 @@ void JackStream::autoConnectPorts()
|
||||||
void JackStream::onJackShutdown()
|
void JackStream::onJackShutdown()
|
||||||
{
|
{
|
||||||
LOG(ERROR, LOG_TAG) << "Jack has shut down, trying to connect again!\n";
|
LOG(ERROR, LOG_TAG) << "Jack has shut down, trying to connect again!\n";
|
||||||
PcmStream::stop();
|
|
||||||
ports_.clear();
|
ports_.clear();
|
||||||
client_ = nullptr;
|
client_ = nullptr;
|
||||||
wait(read_timer_, 1000ms, [this] { tryConnect(); });
|
wait(read_timer_, 1000ms, [this] { tryConnect(); });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue