mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-13 09:06:43 +02:00
raised watchdog timeout to 130min
This commit is contained in:
parent
46b794498e
commit
161888eeee
1 changed files with 3 additions and 2 deletions
|
@ -101,14 +101,15 @@ void SpotifyStream::onStderrMsg(const char* buffer, size_t n)
|
||||||
void SpotifyStream::stderrReader()
|
void SpotifyStream::stderrReader()
|
||||||
{
|
{
|
||||||
watchdog_.reset(new Watchdog(this));
|
watchdog_.reset(new Watchdog(this));
|
||||||
/// 70min
|
/// 130min
|
||||||
watchdog_->start(70*60*1000);
|
watchdog_->start(130*60*1000);
|
||||||
ProcessStream::stderrReader();
|
ProcessStream::stderrReader();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void SpotifyStream::onTimeout(const Watchdog* watchdog, size_t ms)
|
void SpotifyStream::onTimeout(const Watchdog* watchdog, size_t ms)
|
||||||
{
|
{
|
||||||
|
logE << "Spotify timeout: " << ms / 1000 << "\n";
|
||||||
if (process_)
|
if (process_)
|
||||||
process_->kill();
|
process_->kill();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue