summaryrefslogtreecommitdiff
path: root/protocol.go
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2019-12-23 14:43:47 +0300
committerWolfy-J <[email protected]>2019-12-23 14:43:47 +0300
commitc7b0a4a81827284f7565c56aa476eea34fb6382f (patch)
treeee30e93169c37fb058fbe55af6b3f954eabd9646 /protocol.go
parent7f694966730f6dac09d0d0ea3bf51276b8e4dfe4 (diff)
- test fixes
Diffstat (limited to 'protocol.go')
-rw-r--r--protocol.go3
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")
}