summaryrefslogtreecommitdiff
path: root/internal/protocol.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/protocol.go')
-rwxr-xr-xinternal/protocol.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/protocol.go b/internal/protocol.go
index 3257c1d9..a344a3c4 100755
--- a/internal/protocol.go
+++ b/internal/protocol.go
@@ -81,7 +81,7 @@ func FetchPID(rl relay.Relay) (int64, error) {
flags := frameR.ReadFlags()
- if flags&(byte(frame.CONTROL)) == 0 {
+ if flags&frame.CONTROL == 0 {
return 0, errors.E(op, errors.Str("unexpected response, header is missing, no CONTROL flag"))
}