From f24c77a1ff2dc6bf98802b61fa85030b6c8b75f5 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 20 Jan 2018 09:03:09 +0100 Subject: Fix DPD unknown exception --- src/output/Feedback.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/output/Feedback.cpp b/src/output/Feedback.cpp index f0bbd98..97d6e04 100644 --- a/src/output/Feedback.cpp +++ b/src/output/Feedback.cpp @@ -94,7 +94,7 @@ void DPDFeedbackServer::set_tx_frame( boost::mutex::scoped_lock lock(burstRequest.mutex); if (buf.size() % sizeof(complexf) != 0) { - throw std::logic_error("Buffer for tx frame has incorrect size"); + throw logic_error("Buffer for tx frame has incorrect size"); } if (burstRequest.state == BurstRequestState::SaveTransmitFrame) { @@ -192,6 +192,9 @@ void DPDFeedbackServer::ReceiveBurstThread() catch (const std::exception &e) { etiLog.level(error) << "DPD Feedback RX exception: " << e.what(); } + catch (const boost::thread_interrupted& e) { + etiLog.level(info) << "DPD Feedback RX stopping."; + } catch (...) { etiLog.level(error) << "DPD Feedback RX unknown exception!"; } -- cgit v1.2.3