mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-12 16:46:42 +02:00
added airplay stream
This commit is contained in:
parent
bd69940db6
commit
c897b437f9
5 changed files with 118 additions and 4 deletions
|
@ -118,8 +118,8 @@ void ProcessStream::onStderrMsg(const char* buffer, size_t n)
|
|||
if (logStderr_)
|
||||
{
|
||||
string line = trim_copy(string(buffer, n));
|
||||
if (line.find('\0') == string::npos)
|
||||
logO << line << "\n";
|
||||
if ((line.find('\0') == string::npos) && !line.empty())
|
||||
logO << "(" << uri_.getQuery("name") << ") " << line << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -200,7 +200,12 @@ void ProcessStream::worker()
|
|||
{
|
||||
logE << "Exception: " << e.what() << std::endl;
|
||||
process_->kill();
|
||||
chronos::sleep(30000);
|
||||
int sleepMs = 30000;
|
||||
while (active_ && (sleepMs > 0))
|
||||
{
|
||||
chronos::sleep(100);
|
||||
sleepMs -= 100;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue