diff options
Diffstat (limited to 'xP/xP.go')
-rw-r--r-- | xP/xP.go | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -75,12 +75,12 @@ func relayMakeReceiver(ctx context.Context, conn net.Conn) <-chan []byte { go func() { defer close(p) for { - j := relayReadFrame(r) - if j == nil { + b := relayReadFrame(r) + if b == nil { return } select { - case p <- j: + case p <- b: case <-ctx.Done(): return } @@ -145,8 +145,7 @@ func clientWriteError(ctx context.Context, ws *websocket.Conn, err error) bool { b, ok := (&RelayEventMessage{ EventSeq: 0, Data: RelayEventData{ - Interface: RelayEventDataError{ - Event: RelayEventError, + Variant: &RelayEventDataError{ CommandSeq: 0, Error: err.Error(), }, |