mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 12:36:38 +08: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