backup: avoid Transport endpoint is not connected error

We simply supress the error message if the finish flag is set.
This commit is contained in:
Dietmar Maurer
2020-10-20 14:18:14 +02:00
parent c8774067ee
commit b428af9781
2 changed files with 21 additions and 1 deletions

View File

@ -567,6 +567,12 @@ impl BackupEnvironment {
Ok(())
}
/// Return true if the finished flag is set
pub fn finished(&self) -> bool {
let state = self.state.lock().unwrap();
state.finished
}
/// Remove complete backup
pub fn remove_backup(&self) -> Result<(), Error> {
let mut state = self.state.lock().unwrap();