Bugfix: Object source wasn't properly set.

This commit is contained in:
Gunnar Beutner 2012-08-07 12:47:18 +02:00
parent 6d53e491de
commit 11fb9c541e
1 changed files with 3 additions and 3 deletions

View File

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