serve restic: fix immediate exit when not using stdio

In the lib/http refactor

    52443c2444 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
This commit is contained in:
Nick Craig-Wood 2022-12-21 12:32:21 +00:00
parent 6257a6035c
commit 448fff9a04
1 changed files with 1 additions and 0 deletions

View File

@ -173,6 +173,7 @@ with a path of ` + "`/<username>/`" + `.
httpSrv.ServeConn(conn, opts)
return nil
}
s.Wait()
return nil
})
},