mirror of https://github.com/Icinga/icinga2.git
cluster: Fix handling messages that don't have a timestamp.
This commit is contained in:
parent
2daa2cae85
commit
a00a28d31b
|
@ -769,7 +769,7 @@ void ClusterComponent::AcknowledgementClearedHandler(const Service::Ptr& service
|
|||
|
||||
void ClusterComponent::MessageHandler(const Endpoint::Ptr& sender, const Dictionary::Ptr& message)
|
||||
{
|
||||
if (sender->GetRemoteLogPosition() + 10 < message->Get("ts")) {
|
||||
if (message->Contains("ts") && sender->GetRemoteLogPosition() + 10 < message->Get("ts")) {
|
||||
Dictionary::Ptr lparams = boost::make_shared<Dictionary>();
|
||||
lparams->Set("log_position", message->Get("ts"));
|
||||
|
||||
|
|
Loading…
Reference in New Issue