Skip to content

Commit 0613cfe

Browse files
committed
Exit on read err
1 parent e2b1c57 commit 0613cfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (r remoteProcess) listen(ctx context.Context) {
166166
for ctx.Err() == nil {
167167
_, payload, err := r.conn.Read(ctx)
168168
if err != nil {
169-
continue
169+
return err
170170
}
171171
headerByt, body := proto.SplitMessage(payload)
172172

0 commit comments

Comments
 (0)