From 4a4aca4da79931cf58a35f497bb1fed81d24808c Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Tue, 6 Apr 2021 11:21:38 +0100 Subject: [PATCH] dropbox: fix deadlock in batch Commit --- backend/dropbox/batcher.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/backend/dropbox/batcher.go b/backend/dropbox/batcher.go index 695b9c82a..c6a8e0999 100644 --- a/backend/dropbox/batcher.go +++ b/backend/dropbox/batcher.go @@ -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{