Bugfix for the welcome message.

This commit is contained in:
Gunnar Beutner 2012-05-09 15:09:14 +02:00
parent 9b86c7f35f
commit a582b2c191
1 changed files with 3 additions and 1 deletions

View File

@ -484,7 +484,9 @@ void DiscoveryComponent::ProcessDiscoveryMessage(string identity, DiscoveryMessa
if (IsBroker())
SendDiscoveryMessage("discovery::NewComponent", identity, Endpoint::Ptr());
if (endpoint)
/* don't send a welcome message for discovery::RegisterComponent
messages unless we're a broker */
if (endpoint && (trusted || IsBroker()))
FinishDiscoverySetup(endpoint);
}