From 11fb9c541e3ce3ef592bde36c0ad56d79fbdfb3e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 7 Aug 2012 12:47:18 +0200 Subject: [PATCH] Bugfix: Object source wasn't properly set. --- components/cibsync/cibsynccomponent.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/cibsync/cibsynccomponent.cpp b/components/cibsync/cibsynccomponent.cpp index e1727f819..ecd4ebf57 100644 --- a/components/cibsync/cibsynccomponent.cpp +++ b/components/cibsync/cibsynccomponent.cpp @@ -215,14 +215,14 @@ void CIBSyncComponent::RemoteObjectUpdateHandler(const Endpoint::Ptr& sender, co return; } + if (object->GetSource().IsEmpty()) + object->SetSource(sender->GetIdentity()); + object->Register(); } else { if (object->IsLocal()) throw_exception(invalid_argument("Replicated remote object is marked as local.")); - if (object->GetSource().IsEmpty()) - object->SetSource(sender->GetIdentity()); - // TODO: disallow config updates depending on endpoint config object->ApplyUpdate(update, Attribute_All); -- 2.50.1