Skip to content

Commit

Permalink
fix(#267): Maybe fixed empty message bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lxgr-linux committed Nov 21, 2024
1 parent 8e55f12 commit 7e42717
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/bs_rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,11 @@ func (c Client) Listen(ctx context.Context) error {
errorCh <- c.handleMsg(ctx, m)
}()

msgBuf = bytes.Join(msgParts[1:], ENDSECTION)
if len(msgParts[1]) != 0 {
msgBuf = bytes.Join(msgParts[1:], ENDSECTION)
} else {
msgBuf = []byte{}
}
}
}
}
Expand Down

0 comments on commit 7e42717

Please sign in to comment.