Skip to content

Commit

Permalink
Don't delete recording when cancelling processing
Browse files Browse the repository at this point in the history
Closes #208
  • Loading branch information
SeaDve committed Feb 8, 2024
1 parent ebd082e commit d41221b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/recording.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,16 +359,6 @@ impl Recording {
glib::idle_add_local_once(clone!(@weak self as obj => move || {
obj.set_finished(Err(Error::from(Cancelled::new("recording"))));
}));

self.file().delete_async(
glib::Priority::DEFAULT_IDLE,
gio::Cancellable::NONE,
|res| {
if let Err(err) = res {
tracing::warn!("Failed to delete recording file: {:?}", err);
}
},
);
}

pub fn connect_finished<F>(&self, f: F) -> glib::SignalHandlerId
Expand Down

0 comments on commit d41221b

Please sign in to comment.