mirror of
https://github.com/rclone/rclone.git
synced 2025-01-03 12:59:32 +01:00
dropbox: fix result chans not taken care by defer fun
This commit is contained in:
parent
3b6effa81a
commit
ff966b37af
@ -144,7 +144,7 @@ func (b *batcher) commitBatch(ctx context.Context, items []*files.UploadSessionF
|
|||||||
// If commit fails then signal clients if sync
|
// If commit fails then signal clients if sync
|
||||||
var signalled = b.async
|
var signalled = b.async
|
||||||
defer func() {
|
defer func() {
|
||||||
if err != nil && signalled {
|
if err != nil && !signalled {
|
||||||
// Signal to clients that there was an error
|
// Signal to clients that there was an error
|
||||||
for _, result := range results {
|
for _, result := range results {
|
||||||
result <- batcherResponse{err: err}
|
result <- batcherResponse{err: err}
|
||||||
|
Loading…
Reference in New Issue
Block a user