From 5271b27d67f65381302b17c04084b4d767e6d409 Mon Sep 17 00:00:00 2001 From: Christian Date: Wed, 4 Nov 2020 20:33:48 +0100 Subject: [PATCH] too simplistic attempt at blocking botox dubious requests against the async socket while still ensuring regular torch commands work --- SMJSONAPI/scripting/SMJSONAPI.sp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SMJSONAPI/scripting/SMJSONAPI.sp b/SMJSONAPI/scripting/SMJSONAPI.sp index 7bed5a2f..c2f825b0 100644 --- a/SMJSONAPI/scripting/SMJSONAPI.sp +++ b/SMJSONAPI/scripting/SMJSONAPI.sp @@ -368,7 +368,7 @@ static int HandleRequest(int Client, JSONObject jRequest, JSONObject jResponse) } delete jValue; } - int sm_call_finish_ex_params_size = 2; + int sm_call_finish_ex_params_size = 1; if (parameter_count_verified > sm_call_finish_ex_params_size) { Call_Cancel();