packages/hyprspace: fix PeXRouting

This commit is contained in:
Max Headroom 2023-01-28 01:53:03 +01:00
parent 65c5c2e58f
commit 4aeea39c10

View file

@ -82,7 +82,7 @@ func RequestPeX(ctx context.Context, host host.Host, peers []peer.ID) (addrInfos
for { for {
str, err := buf.ReadString('\n') str, err := buf.ReadString('\n')
if err == io.EOF { if err == io.EOF {
return nil, err return addrInfos, nil
} else if checkErrPeX(err, s) { } else if checkErrPeX(err, s) {
return nil, err return nil, err
} }