Skip to content
Snippets Groups Projects
Commit 3e429f58 authored by vargheseg's avatar vargheseg
Browse files

Workaround for std::logic_error in 00.08.00

Issue:
Server throws when there are no device module variables:

terminate called after throwing an instance of 'std::logic_error'
  what():  ReadAnyGroup has no element with AccessMode::wait_for_new_data.
Aborted (core dumped)

This commit introduces a workaround as proposed by jens:
  void DoocsUpdater::updateLoop(){
       if (_elementsToRead.empty()) {
           return;
       }

This commit is intended to be reverted if the above strategy has side
effects.
parent 5a200a3b
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,10 @@ namespace ChimeraTK{
}
void DoocsUpdater::updateLoop(){
if (_elementsToRead.empty()) {
return;
}
ReadAnyGroup group(_elementsToRead.begin(), _elementsToRead.end());
while(true){
auto updatedElement = group.readAny();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment