diff options
author | Steven Koo <steven.koo@ni.com> | 2020-08-10 17:41:40 -0500 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-08-11 16:07:40 -0500 |
commit | f9ef6757b13ba972bdb658a292ae896cda64aef7 (patch) | |
tree | cbfc0617aab228568d2561509f816c7b90aebf88 /host/lib/rfnoc/rfnoc_graph.cpp | |
parent | be5bee81c4116388f6f3626b6ce1089845c4f792 (diff) | |
download | uhd-f9ef6757b13ba972bdb658a292ae896cda64aef7.tar.gz uhd-f9ef6757b13ba972bdb658a292ae896cda64aef7.tar.bz2 uhd-f9ef6757b13ba972bdb658a292ae896cda64aef7.zip |
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.
Diffstat (limited to 'host/lib/rfnoc/rfnoc_graph.cpp')
-rw-r--r-- | host/lib/rfnoc/rfnoc_graph.cpp | 8 |
1 files changed, 0 insertions, 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); } |