mirror of
https://github.com/restic/restic.git
synced 2025-10-10 13:59:59 +00:00
Improve command shutdown on context cancellation
This commit is contained in:
@@ -380,6 +380,7 @@ func (fn *FutureNode) take(ctx context.Context) futureNodeResult {
|
||||
return res
|
||||
}
|
||||
case <-ctx.Done():
|
||||
return futureNodeResult{err: ctx.Err()}
|
||||
}
|
||||
return futureNodeResult{err: errors.Errorf("no result")}
|
||||
}
|
||||
|
Reference in New Issue
Block a user