diff options
Diffstat (limited to 'contrib/epee')
-rw-r--r-- | contrib/epee/include/misc_language.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/epee/include/misc_language.h b/contrib/epee/include/misc_language.h index d5157365c..7e4eb337d 100644 --- a/contrib/epee/include/misc_language.h +++ b/contrib/epee/include/misc_language.h @@ -147,7 +147,8 @@ namespace misc_utils {} ~call_befor_die() { - m_func(); + try { m_func(); } + catch (...) { /* ignore */ } } }; |