mirror of
https://github.com/samuelncui/yatm.git
synced 2026-09-02 22:27:29 +00:00
fix: acp exit not wait for event handler
This commit is contained in:
@@ -325,6 +325,9 @@ func (a *jobRestoreExecutor) restoreTape(ctx context.Context, device string) (re
|
||||
}
|
||||
|
||||
defer func() {
|
||||
a.stateLock.Lock()
|
||||
defer a.stateLock.Unlock()
|
||||
|
||||
restoreTape.Status = entity.CopyStatus_SUBMITED
|
||||
for _, file := range restoreTape.Files {
|
||||
if file.Status == entity.CopyStatus_STAGED {
|
||||
|
||||
Reference in New Issue
Block a user