]> granicus.if.org Git - icinga2/commitdiff
OpenTsdbWriter: Ensure to reset reconnect timer on Pause()
authorMichael Friedrich <michael.friedrich@icinga.com>
Wed, 20 Feb 2019 16:17:45 +0000 (17:17 +0100)
committerMichael Friedrich <michael.friedrich@icinga.com>
Wed, 20 Feb 2019 16:17:45 +0000 (17:17 +0100)
lib/perfdata/opentsdbwriter.cpp

index 78feea8f26f591155e16a55bf3d2e482b826805c..6999482caee995748864f996d8cc7d6539a09526 100644 (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.";