mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-12 16:21:13 +00:00
FairMQ: stop device if binding was unsuccessful (not updated dynamically).
This commit is contained in:
parent
459b42add2
commit
1fa5c836a6
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user