raised watchdog timeout to 130min

This commit is contained in:
badaix 2016-11-04 10:35:17 +01:00
parent 46b794498e
commit 161888eeee

View file

@ -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();
}