Merge pull request #493 from hqhq/specify_shim_socket

Remove duplicated close
This commit is contained in:
Phil Estes 2017-02-07 09:47:14 -08:00 committed by GitHub
commit eb2191c744

View file

@ -93,7 +93,6 @@ func serve(server *grpc.Server, path string) error {
defer l.Close()
if err := server.Serve(l); err != nil &&
!strings.Contains(err.Error(), "use of closed network connection") {
l.Close()
logrus.WithError(err).Fatal("containerd-shim: GRPC server failure")
}
}()