Skip to content

Commit

Permalink
socket: return from loop after EOF
Browse files Browse the repository at this point in the history
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
(cherry picked from commit 8cd3b00)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
tonistiigi authored and thaJeztah committed Jan 20, 2024
1 parent 01f9332 commit 4e097c6
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 4e097c6

Please sign in to comment.