1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

fix when rpc reports "transport is closing" error, health check go routine will exit

Signed-off-by: Wentao Zhang <zhangwentao234@huawei.com>
This commit is contained in:
Wentao Zhang 2017-05-04 00:18:26 +08:00
parent f3dfcfd307
commit 60742f9a95

View file

@ -154,7 +154,7 @@ func (r *remote) handleConnectionChange() {
logrus.Debugf("libcontainerd: containerd health check returned error: %v", err)
if r.daemonPid != -1 {
if strings.Contains(err.Error(), "is closing") {
if r.closeManually {
// Well, we asked for it to stop, just return
return
}