From b03ee4e9e778165d7f192633836cc8ee0410398a Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 22 Dec 2022 16:55:17 +0000 Subject: [PATCH] serve webdav: fix running duplicate Serve call Before this change we were starting the server twice for webdav which is inefficient and causes problems at exit. --- cmd/serve/webdav/webdav.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/serve/webdav/webdav.go b/cmd/serve/webdav/webdav.go index cdec88b4b..e608ae6da 100644 --- a/cmd/serve/webdav/webdav.go +++ b/cmd/serve/webdav/webdav.go @@ -199,8 +199,6 @@ func newWebDAV(ctx context.Context, f fs.Fs, opt *Options) (w *WebDAV, err error router.Method(method, "/*", w) } - w.Server.Serve() - return w, nil }