Skip to content

Commit

Permalink
Merge pull request #4806 from thaJeztah/25.0_backport_socket-eof-return
Browse files Browse the repository at this point in the history
[25.0 backport] socket: return from loop after EOF
  • Loading branch information
thaJeztah authored Jan 22, 2024
2 parents 01f9332 + 4e097c6 commit e8852e8
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 e8852e8

Please sign in to comment.