FairMQ: stop device if binding was unsuccessful (not updated dynamically).

This commit is contained in:
Alexey Rybalchenko 2017-04-27 13:06:56 +02:00 committed by Mohammad Al-Turany
parent 459b42add2
commit 1fa5c836a6

View File

@ -232,6 +232,13 @@ void FairMQDevice::InitWrapper()
// Bind channels. Here one run is enough, because bind settings should be available locally
// If necessary this could be handled in the same way as the connecting channels
AttachChannels(uninitializedBindingChannels);
if (uninitializedBindingChannels.size() > 0)
{
LOG(ERROR) << uninitializedBindingChannels.size() << " of the binding channels could not initialize. Initial configuration incomplete.";
exit(EXIT_FAILURE);
}
// notify parent thread about completion of first validation.
{
lock_guard<mutex> lock(fInitialValidationMutex);