diff options
author | Valery Piashchynski <[email protected]> | 2019-11-17 18:13:15 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2019-11-17 18:13:15 +0300 |
commit | a7982f6e692e9dc40f035d5f1486cb2bbae71f88 (patch) | |
tree | ab4b32c190bc8bffd9b1b99b806e03192729c59a /protocol.go | |
parent | c463235f55cdae5fa7c63a87e7cc73c6e535d27a (diff) |
finish the check
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") } |