From 6be0644178ebaceab5baad1c293acccd8c8866b6 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Wed, 21 Dec 2022 12:32:21 +0000 Subject: [PATCH] serve restic: fix immediate exit when not using stdio In the lib/http refactor 52443c2444e3d3c4 restic: refactor to use lib/http We forgot to serve the data and wait for the server to finish. This is not tested in the unit tests as it is part of the command line handler. Fixes #6644 Fixes #6647 --- cmd/serve/restic/restic.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/serve/restic/restic.go b/cmd/serve/restic/restic.go index 0d4db85bd..0752d1ca5 100644 --- a/cmd/serve/restic/restic.go +++ b/cmd/serve/restic/restic.go @@ -173,6 +173,7 @@ with a path of ` + "`//`" + `. httpSrv.ServeConn(conn, opts) return nil } + s.Wait() return nil }) },