Skip to content

Commit 4e097c6

Browse files
tonistiigithaJeztah
authored andcommitted
socket: return from loop after EOF
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> (cherry picked from commit 8cd3b00) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 01f9332 commit 4e097c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)