Remove duplicated close

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
Qiang Huang 2017-02-07 10:17:47 +08:00
parent f861817a8e
commit 81246555c9

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")
}
}()