mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-11 16:16:42 +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()
|
||||
{
|
||||
watchdog_.reset(new Watchdog(this));
|
||||
/// 70min
|
||||
watchdog_->start(70*60*1000);
|
||||
/// 130min
|
||||
watchdog_->start(130*60*1000);
|
||||
ProcessStream::stderrReader();
|
||||
}
|
||||
|
||||
|
||||
void SpotifyStream::onTimeout(const Watchdog* watchdog, size_t ms)
|
||||
{
|
||||
logE << "Spotify timeout: " << ms / 1000 << "\n";
|
||||
if (process_)
|
||||
process_->kill();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue