From 682feb3f6c18fc0780528adfeb8fc59368f9e48e Mon Sep 17 00:00:00 2001 From: Vidush Date: Mon, 21 May 2018 09:46:18 -0700 Subject: Log: Handle Exceptions in Destructor --- host/lib/utils/log.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'host/lib') diff --git a/host/lib/utils/log.cpp b/host/lib/utils/log.cpp index e975bccc0..8126d46b7 100644 --- a/host/lib/utils/log.cpp +++ b/host/lib/utils/log.cpp @@ -505,7 +505,10 @@ uhd::_log::log::~log(void) { if (_log_it) { this->_log_info.message = _ss.str(); - log_rs().push(this->_log_info); + try{ + log_rs().push(this->_log_info); + } + catch (...){} } } -- cgit v1.2.3