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 5cb8f31 commit bc30ab5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/bs_rpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"time"

"github.com/lxgr-linux/pokete/bs_rpc/msg"
Expand Down Expand Up @@ -112,6 +113,7 @@ func (c Client) Listen(ctx context.Context) error {

if bytes.Contains(msgBuf, ENDSECTION) && !bytes.Equal(msgBuf, ENDSECTION) {
msgParts := bytes.Split(msgBuf, ENDSECTION)
slog.Info(string(msgBuf))

m, err := Unmarshall(
&c.registry,
Expand Down

0 comments on commit bc30ab5

Please sign in to comment.