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 <[email protected]>
  • Loading branch information
tonistiigi committed Jan 20, 2024
1 parent e2519ae commit 8cd3b00
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 8cd3b00

Please sign in to comment.