feat: Re-index if file does exist but index is not up to date

This commit is contained in:
Felicitas Pojtinger
2022-01-01 21:54:30 +01:00
parent d71421e14e
commit 92dcc46cf5
3 changed files with 78 additions and 19 deletions

View File

@@ -85,8 +85,10 @@ func (m *TapeManager) GetDrive() (config.DriveConfig, error) {
}
func (m *TapeManager) Close() error {
if err := m.closer(); err != nil {
return err
if m.closer != nil {
if err := m.closer(); err != nil {
return err
}
}
m.driveLock.Unlock()