diff options
author | Martin Braun <martin.braun@ettus.com> | 2017-11-28 18:03:12 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-12-22 15:05:57 -0800 |
commit | 8bccbf85643feb7e88b768e41f29cc5aa66e2aa2 (patch) | |
tree | b36e150b8aac16f93f91bddbd2a4584b5e0228b7 /host/lib | |
parent | b3662efeb3aa82cdfa08bc70af4670bca2aa2b8d (diff) | |
download | uhd-8bccbf85643feb7e88b768e41f29cc5aa66e2aa2.tar.gz uhd-8bccbf85643feb7e88b768e41f29cc5aa66e2aa2.tar.bz2 uhd-8bccbf85643feb7e88b768e41f29cc5aa66e2aa2.zip |
mpmd: More gracefully quite the reclaim loop on failure
Diffstat (limited to 'host/lib')
-rw-r--r-- | host/lib/usrp/mpmd/mpmd_mboard_impl.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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<bool>("reclaim"); + try { + return rpc->request_with_token<bool>("reclaim"); + } catch (...) { + UHD_LOG_WARNING("MPMD", "Reclaim failed. Exiting claimer loop."); + return false; + } } uhd::task::sptr mpmd_mboard_impl::claim_device_and_make_task( |