mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 05:04:30 +02:00
OpenTsdbWriter: Ensure to reset reconnect timer on Pause()
This commit is contained in:
parent
301c48e9bc
commit
24c3572b03
@ -85,8 +85,11 @@ void OpenTsdbWriter::Resume()
|
|||||||
Service::OnNewCheckResult.connect(std::bind(&OpenTsdbWriter::CheckResultHandler, this, _1, _2));
|
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()
|
void OpenTsdbWriter::Pause()
|
||||||
{
|
{
|
||||||
|
m_ReconnectTimer.reset();
|
||||||
|
|
||||||
Log(LogInformation, "OpentsdbWriter")
|
Log(LogInformation, "OpentsdbWriter")
|
||||||
<< "'" << GetName() << "' paused.";
|
<< "'" << GetName() << "' paused.";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user