mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Make invalid channel initialization cancellable through pending state
This commit is contained in:
parent
1c8d1245ad
commit
9172a4aa04
|
@ -304,7 +304,7 @@ void Device::ConnectWrapper()
|
||||||
// first attempt
|
// first attempt
|
||||||
AttachChannels(fUninitializedConnectingChannels);
|
AttachChannels(fUninitializedConnectingChannels);
|
||||||
// if not all channels could be connected, update their address values from config and retry
|
// if not all channels could be connected, update their address values from config and retry
|
||||||
while (!fUninitializedConnectingChannels.empty()) {
|
while (!fUninitializedConnectingChannels.empty() && !NewStatePending()) {
|
||||||
this_thread::sleep_for(chrono::milliseconds(sleepTimeInMS));
|
this_thread::sleep_for(chrono::milliseconds(sleepTimeInMS));
|
||||||
|
|
||||||
for (auto& chan : fUninitializedConnectingChannels) {
|
for (auto& chan : fUninitializedConnectingChannels) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user