xP: update variable name

This commit is contained in:
Přemysl Eric Janouch 2024-11-04 07:39:43 +01:00
parent 872f2d7c59
commit b1ee295345
Signed by: p
GPG Key ID: A0420B94F92B9493

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
}