Skip to content

Commit

Permalink
Fix bug in remove_recording_by_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Apr 8, 2024
1 parent 70831c7 commit f4db8df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/re_viewer_context/src/store_hub.rs
Expand Up @@ -602,6 +602,10 @@ impl StoreHub {
/// Remove any recordings with a network source pointing at this `uri`.
pub fn remove_recording_by_uri(&mut self, uri: &str) {
self.retain(|db| {
if db.store_kind() != StoreKind::Recording {
return true;
}

let Some(data_source) = &db.data_source else {
// no data source, keep
return true;
Expand Down

0 comments on commit f4db8df

Please sign in to comment.