mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-14 17:16:47 +00:00
Handle invalid transition to init in the control plugin
This commit is contained in:
parent
7b16c33ccd
commit
9b4c5deb0b
|
@ -203,9 +203,10 @@ try {
|
||||||
break;
|
break;
|
||||||
case 'i':
|
case 'i':
|
||||||
cout << "\n --> [i] init device\n\n" << flush;
|
cout << "\n --> [i] init device\n\n" << flush;
|
||||||
ChangeDeviceState(DeviceStateTransition::InitDevice);
|
if (ChangeDeviceState(DeviceStateTransition::InitDevice)) {
|
||||||
while (WaitForNextState() != DeviceState::InitializingDevice) {}
|
while (WaitForNextState() != DeviceState::InitializingDevice) {}
|
||||||
ChangeDeviceState(DeviceStateTransition::CompleteInit);
|
ChangeDeviceState(DeviceStateTransition::CompleteInit);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'b':
|
case 'b':
|
||||||
cout << "\n --> [b] bind\n\n" << flush;
|
cout << "\n --> [b] bind\n\n" << flush;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user