Compare commits

...

2 Commits

Author SHA1 Message Date
a011b57ce2
Bump liberty
All checks were successful
Alpine 3.20 Success
Arch Linux AUR Success
OpenBSD 7.5 Success
2024-11-07 11:07:36 +01:00
b1ee295345
xP: update variable name 2024-11-04 07:40:14 +01:00
2 changed files with 5 additions and 6 deletions

@ -1 +1 @@
Subproject commit 75fc6f1c374796f9e794297c3893089009b8772f
Subproject commit aacf1b1d47824de2c924874e3d6cdad1d8b5ba2b

View File

@ -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(),
},