aboutsummaryrefslogtreecommitdiff
path: root/xP/xP.go
diff options
context:
space:
mode:
Diffstat (limited to 'xP/xP.go')
-rw-r--r--xP/xP.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/xP/xP.go b/xP/xP.go
index ba63fe9..188fd5d 100644
--- a/xP/xP.go
+++ b/xP/xP.go
@@ -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(),
},