diff --git a/protocol/json/client_response.go b/protocol/json/client_response.go index 165bd59..1f1843e 100644 --- a/protocol/json/client_response.go +++ b/protocol/json/client_response.go @@ -21,7 +21,7 @@ func newClientCodecResponse(raw json.RawMessage) (protocol.ClientCodecResponse, releaseClientCodecResponse(ccr) return nil, err } - if 0 == ccr.response.ID { + if nil == ccr.response.ID { releaseClientCodecResponse(ccr) return nil, fmt.Errorf("This is not Response") }