diff options
author | Jhon Honce <jhonce@redhat.com> | 2020-02-25 10:55:17 -0700 |
---|---|---|
committer | Jhon Honce <jhonce@redhat.com> | 2020-02-25 11:04:20 -0700 |
commit | 997e3c886383aab4cdf86c386469d20ac589e158 (patch) | |
tree | e798c7359228f9d23436d4683b9bd54f4f289f04 /cmd/podman/service.go | |
parent | 3d37dc639d87e4469a6457cf4592ff5b773d0777 (diff) | |
download | podman-997e3c886383aab4cdf86c386469d20ac589e158.tar.gz podman-997e3c886383aab4cdf86c386469d20ac589e158.tar.bz2 podman-997e3c886383aab4cdf86c386469d20ac589e158.zip |
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 <jhonce@redhat.com>
Diffstat (limited to 'cmd/podman/service.go')
-rw-r--r-- | cmd/podman/service.go | 1 |
1 files changed, 0 insertions, 1 deletions
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) |