Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

dropbox: fix hang on quit with --dropbox-batch-mode off

Nick Craig-Wood50f053cadaa9
diff --git a/backend/dropbox/batcher.go b/backend/dropbox/batcher.go
index ac87c71e0..874bb93d9 100644
--- a/backend/dropbox/batcher.go
+++ b/backend/dropbox/batcher.go
@@ -304,6 +304,9 @@ outer:
//
// Can be called from atexit handler
func (b *batcher) Shutdown() {
+ if !b.Batching() {
+ return
+ }
b.shutOnce.Do(func() {
atexit.Unregister(b.atexit)
fs.Infof(b.f, "Commiting uploads - please wait...")