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

serve dnla: fix crash on graceful exit

wuxingzhong4ab57eb90b0d
diff --git a/cmd/serve/dlna/dlna.go b/cmd/serve/dlna/dlna.go
index 2c25918e6..1a2a77914 100644
--- a/cmd/serve/dlna/dlna.go
+++ b/cmd/serve/dlna/dlna.go
@@ -129,11 +129,10 @@ func newServer(f fs.Fs, opt *dlnaflags.Options) (*server, error) {
FriendlyName: friendlyName,
RootDeviceUUID: makeDeviceUUID(friendlyName),
Interfaces: interfaces,
-
- httpListenAddr: opt.ListenAddr,
-
- f: f,
- vfs: vfs.New(f, &vfsflags.Opt),
+ waitChan: make(chan struct{}),
+ httpListenAddr: opt.ListenAddr,
+ f: f,
+ vfs: vfs.New(f, &vfsflags.Opt),
}
s.services = map[string]UPnPService{