mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 14:56:29 +00:00
archiver: free workers once finished
This commit is contained in:
parent
408ac1a0c2
commit
e002b09d57
@ -779,6 +779,9 @@ func (arch *Archiver) stopWorkers() {
|
|||||||
arch.blobSaver.TriggerShutdown()
|
arch.blobSaver.TriggerShutdown()
|
||||||
arch.fileSaver.TriggerShutdown()
|
arch.fileSaver.TriggerShutdown()
|
||||||
arch.treeSaver.TriggerShutdown()
|
arch.treeSaver.TriggerShutdown()
|
||||||
|
arch.blobSaver = nil
|
||||||
|
arch.fileSaver = nil
|
||||||
|
arch.treeSaver = nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Snapshot saves several targets and returns a snapshot.
|
// Snapshot saves several targets and returns a snapshot.
|
||||||
|
Loading…
Reference in New Issue
Block a user