Remove duplicated close
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
This commit is contained in:
parent
f861817a8e
commit
81246555c9
1 changed files with 0 additions and 1 deletions
|
@ -93,7 +93,6 @@ func serve(server *grpc.Server, path string) error {
|
||||||
defer l.Close()
|
defer l.Close()
|
||||||
if err := server.Serve(l); err != nil &&
|
if err := server.Serve(l); err != nil &&
|
||||||
!strings.Contains(err.Error(), "use of closed network connection") {
|
!strings.Contains(err.Error(), "use of closed network connection") {
|
||||||
l.Close()
|
|
||||||
logrus.WithError(err).Fatal("containerd-shim: GRPC server failure")
|
logrus.WithError(err).Fatal("containerd-shim: GRPC server failure")
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
Loading…
Add table
Reference in a new issue