Skip to content

Commit

Permalink
Merge pull request #4805 from tonistiigi/socket-eof-return
Browse files Browse the repository at this point in the history
socket: return from loop after EOF
  • Loading branch information
thaJeztah authored Jan 20, 2024
2 parents e2519ae + 8cd3b00 commit f18a476
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli-plugins/socket/socket.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ func ConnectAndWait(cb func()) {
_, err := conn.Read(b)
if errors.Is(err, io.EOF) {
cb()
return
}
}
}()
Expand Down

0 comments on commit f18a476

Please sign in to comment.