From 8bccbf85643feb7e88b768e41f29cc5aa66e2aa2 Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Tue, 28 Nov 2017 18:03:12 -0800 Subject: mpmd: More gracefully quite the reclaim loop on failure --- host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp index 40e64b563..337504927 100644 --- a/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp +++ b/host/lib/usrp/mpmd/mpmd_mboard_impl.cpp @@ -180,7 +180,12 @@ void mpmd_mboard_impl::set_xbar_local_addr( ****************************************************************************/ bool mpmd_mboard_impl::claim() { - return rpc->request_with_token("reclaim"); + try { + return rpc->request_with_token("reclaim"); + } catch (...) { + UHD_LOG_WARNING("MPMD", "Reclaim failed. Exiting claimer loop."); + return false; + } } uhd::task::sptr mpmd_mboard_impl::claim_device_and_make_task( -- cgit v1.2.3