From f9ef6757b13ba972bdb658a292ae896cda64aef7 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Mon, 10 Aug 2020 17:41:40 -0500 Subject: rfnoc: Don't error when streamer isn't found This commit resolves an issue where the disconnect call would fail if the streamer was created, but not connected. If disconnect gets called on a streamer that isn't on the graph, ignore it. --- host/lib/rfnoc/rfnoc_graph.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/host/lib/rfnoc/rfnoc_graph.cpp b/host/lib/rfnoc/rfnoc_graph.cpp index 2e90fb48f..56629d057 100644 --- a/host/lib/rfnoc/rfnoc_graph.cpp +++ b/host/lib/rfnoc/rfnoc_graph.cpp @@ -400,10 +400,6 @@ public: // Remove the streamer from the map _rx_streamers.erase(streamer_id); - } else { - throw uhd::lookup_error( - std::string("Cannot disconnect streamer. Streamer not found: ") - + streamer_id); } UHD_LOG_TRACE(LOG_ID, std::string("Disconnected ") + streamer_id); } @@ -431,10 +427,6 @@ public: throw uhd::lookup_error( std::string("Cannot disconnect. Port not connected: ") + id_str); } - } else { - throw uhd::lookup_error( - std::string("Cannot disconnect streamer. Streamer not found: ") - + streamer_id); } UHD_LOG_TRACE(LOG_ID, std::string("Disconnected ") + id_str); } -- cgit v1.2.3