mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-15 09:31:45 +00:00
SDK: Improve error handling in case state-change fails on a device
Replace the log message with 1. Nothing, if the device is already in the target state 2. Abort and call the completion callback with error otherwise
This commit is contained in:
committed by
Dennis Klein
parent
fd282fa950
commit
7b773cde51
@@ -150,6 +150,7 @@ class Topology
|
||||
ChangeStateCallback fChangeStateCallback;
|
||||
std::chrono::milliseconds fStateChangeTimeout;
|
||||
bool fShutdown;
|
||||
std::string fStateChangeError;
|
||||
|
||||
void WaitForState();
|
||||
void AddNewStateEntry(uint64_t senderId, const std::string& state);
|
||||
|
Reference in New Issue
Block a user