Skip to content

Commit 8cd3b00

Browse files
committed
socket: return from loop after EOF
Signed-off-by: Tonis Tiigi <[email protected]>
1 parent e2519ae commit 8cd3b00

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cli-plugins/socket/socket.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func ConnectAndWait(cb func()) {
6565
_, err := conn.Read(b)
6666
if errors.Is(err, io.EOF) {
6767
cb()
68+
return
6869
}
6970
}
7071
}()

0 commit comments

Comments
 (0)