mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 12:36:38 +08:00
dropbox: fix deadlock in batch Commit
This commit is contained in:
parent
2e4b65f888
commit
4a4aca4da7
|
@ -311,12 +311,6 @@ func (b *batcher) Shutdown() {
|
|||
// batch and then waiting for the batch to complete in a synchronous
|
||||
// way if async is not set.
|
||||
func (b *batcher) Commit(ctx context.Context, commitInfo *files.UploadSessionFinishArg) (entry *files.FileMetadata, err error) {
|
||||
select {
|
||||
case <-b.in:
|
||||
// pause this goroutine as we are quitting
|
||||
select {}
|
||||
default:
|
||||
}
|
||||
fs.Debugf(b.f, "Adding %q to batch", commitInfo.Commit.Path)
|
||||
resp := make(chan batcherResponse, 1)
|
||||
b.in <- batcherRequest{
|
||||
|
|
Loading…
Reference in New Issue
Block a user