mirror of
https://github.com/rclone/rclone.git
synced 2024-12-22 23:22:08 +01:00
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.
This commit is contained in:
parent
176af2b217
commit
b03ee4e9e7
@ -199,8 +199,6 @@ func newWebDAV(ctx context.Context, f fs.Fs, opt *Options) (w *WebDAV, err error
|
|||||||
router.Method(method, "/*", w)
|
router.Method(method, "/*", w)
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Server.Serve()
|
|
||||||
|
|
||||||
return w, nil
|
return w, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user