diff options
Diffstat (limited to 'protocol.go')
-rw-r--r-- | protocol.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/protocol.go b/protocol.go index 5523a3e5..42649264 100644 --- a/protocol.go +++ b/protocol.go @@ -34,6 +34,9 @@ func fetchPID(rl goridge.Relay) (pid int, err error) { } body, p, err := rl.Receive() + if err != nil { + return 0, err + } if !p.HasFlag(goridge.PayloadControl) { return 0, fmt.Errorf("unexpected response, header is missing") } |