Merge pull request #36651 from keloyang/judgment-daemonWaitCh
Add if judgment before receiving operations on daemonWaitCh
This commit is contained in:
commit
b6a7d027e9
1 changed files with 3 additions and 1 deletions
|
@ -307,7 +307,9 @@ func (r *remote) monitorConnection(monitor *containerd.Client) {
|
|||
<-time.After(100 * time.Millisecond)
|
||||
system.KillProcess(r.daemonPid)
|
||||
}
|
||||
<-r.daemonWaitCh
|
||||
if r.daemonWaitCh != nil {
|
||||
<-r.daemonWaitCh
|
||||
}
|
||||
|
||||
monitor.Close()
|
||||
os.Remove(r.GRPC.Address)
|
||||
|
|
Loading…
Reference in a new issue