fix(timer_module): Catch warmup exceptions

Refs #399
This commit is contained in:
Michael Carlberg 2017-01-31 12:38:37 +01:00
parent 82d360e634
commit 6fa2d3943c
1 changed files with 4 additions and 4 deletions

View File

@ -25,11 +25,11 @@ namespace modules {
return CAST_MOD(Impl)->update();
};
// warm up module output before entering the loop
check();
CAST_MOD(Impl)->broadcast();
try {
// warm up module output before entering the loop
check();
CAST_MOD(Impl)->broadcast();
while (this->running()) {
if (check()) {
CAST_MOD(Impl)->broadcast();