mirror of
https://github.com/rclone/rclone
synced 2024-11-05 01:42:31 +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
|
||||
var signalled = b.async
|
||||
defer func() {
|
||||
if err != nil && signalled {
|
||||
if err != nil && !signalled {
|
||||
// Signal to clients that there was an error
|
||||
for _, result := range results {
|
||||
result <- batcherResponse{err: err}
|
||||
|
Loading…
Reference in New Issue
Block a user