From 997e3c886383aab4cdf86c386469d20ac589e158 Mon Sep 17 00:00:00 2001 From: Jhon Honce Date: Tue, 25 Feb 2020 10:55:17 -0700 Subject: Remove 1 sec delay * Stop closing net.Listener() twice on interrupt * Do not report error if closing server twice Fixes #5311 Signed-off-by: Jhon Honce --- cmd/podman/service.go | 1 - 1 file changed, 1 deletion(-) (limited to 'cmd/podman/service.go') diff --git a/cmd/podman/service.go b/cmd/podman/service.go index 3e0ff927f..7606e3009 100644 --- a/cmd/podman/service.go +++ b/cmd/podman/service.go @@ -143,7 +143,6 @@ func runREST(r *libpod.Runtime, uri string, timeout time.Duration) error { if err != nil { return errors.Wrapf(err, "unable to create socket %s", uri) } - defer l.Close() listener = &l } server, err := api.NewServerWithSettings(r, timeout, listener) -- cgit v1.2.3-54-g00ecf