Merge pull request #4805 from tonistiigi/socket-eof-return
socket: return from loop after EOF
This commit is contained in:
commit
f18a476b6d
@ -65,6 +65,7 @@ func ConnectAndWait(cb func()) {
|
||||
_, err := conn.Read(b)
|
||||
if errors.Is(err, io.EOF) {
|
||||
cb()
|
||||
return
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
Loading…
x
Reference in New Issue
Block a user