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
a8b7ebef09
commit
87baf9749d
|
@ -304,7 +304,7 @@ void Device::ConnectWrapper()
|
|||
// first attempt
|
||||
AttachChannels(fUninitializedConnectingChannels);
|
||||
// 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));
|
||||
|
||||
for (auto& chan : fUninitializedConnectingChannels) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user