OpenTsdbWriter: Ensure to reset reconnect timer on Pause()

This commit is contained in:
Michael Friedrich 2019-02-20 17:17:45 +01:00
parent 301c48e9bc
commit 24c3572b03
1 changed files with 3 additions and 0 deletions

View File

@ -85,8 +85,11 @@ void OpenTsdbWriter::Resume()
Service::OnNewCheckResult.connect(std::bind(&OpenTsdbWriter::CheckResultHandler, this, _1, _2));
}
/* Pause is equivalent to Stop, but with HA capabilities to resume at runtime. */
void OpenTsdbWriter::Pause()
{
m_ReconnectTimer.reset();
Log(LogInformation, "OpentsdbWriter")
<< "'" << GetName() << "' paused.";