mirror of https://github.com/docker/cli.git
socket: return from loop after EOF
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
parent
e2519aefcb
commit
8cd3b00420
|
@ -65,6 +65,7 @@ func ConnectAndWait(cb func()) {
|
|||
_, err := conn.Read(b)
|
||||
if errors.Is(err, io.EOF) {
|
||||
cb()
|
||||
return
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
|
Loading…
Reference in New Issue