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
1 changed files with 0 additions and 1 deletions

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