aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-03-19 10:33:04 -0400
committerJack Lloyd <[email protected]>2018-03-19 10:33:04 -0400
commit74447948b5a767ca038049f97ebd0bcf020e0760 (patch)
treec9cebb4057a56a72a46f44c8b384c088e96b4bbf /src/cli
parent8f70c83e0c5322e071686e9f6d862d7a7b6f16f8 (diff)
Avoid throwing out of destructor
This can't really happen but could in Coverity's mind.
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/speed.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/cli/speed.cpp b/src/cli/speed.cpp
index 80228bcd8..01e41e323 100644
--- a/src/cli/speed.cpp
+++ b/src/cli/speed.cpp
@@ -163,7 +163,11 @@ class Timer final
}
~Timer_Scope()
{
- m_timer.stop();
+ try
+ {
+ m_timer.stop();
+ }
+ catch(...) {}
}
private:
Timer& m_timer;