cluster: Fix handling messages that don't have a timestamp.

This commit is contained in:
Gunnar Beutner 2013-09-06 13:34:11 +02:00
parent 2daa2cae85
commit a00a28d31b
1 changed files with 1 additions and 1 deletions

View File

@ -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"));