This commit is contained in:
jl777
2016-10-31 20:39:53 -03:00
parent c030a184f8
commit 3bc31b8c78

View File

@@ -973,8 +973,10 @@ static bool HTTPReq_JSONRPC(AcceptedConnection *conn,
// Parse request
Value valRequest;
if (!read_string(strRequest, valRequest))
{
fprintf(stderr,"CANTPARSE.(%s)\n",strRequest.c_str());
throw JSONRPCError(RPC_PARSE_ERROR, "Parse error");
}
// Return immediately if in warmup
{
LOCK(cs_rpcWarmup);