From b3787b2df85d960b1cffd37adefde9e3aebc3a26 Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Fri, 10 Nov 2023 17:37:20 +1000 Subject: [PATCH] don't execute the function twice. oops. --- RPC/OpenOS/usr/lib/rpc.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/RPC/OpenOS/usr/lib/rpc.lua b/RPC/OpenOS/usr/lib/rpc.lua index a5ac7ce..f8ef803 100644 --- a/RPC/OpenOS/usr/lib/rpc.lua +++ b/RPC/OpenOS/usr/lib/rpc.lua @@ -66,7 +66,6 @@ function rpc.register(name,fn) if port == rpc.port then local rpcrq = serial.unserialize(data) if rpcf[rpcrq[1]] and isPermitted(from,rpcrq[1]) then - local rt = {pcall(rpcf[rpcrq[1]],table.unpack(rpcrq))} minitel.send(from,port,serial.serialize({rpcrq[2],pcall(rpcf[rpcrq[1]],table.unpack(rpcrq,3))})) elseif type(rpcrq[2]) == "string" then minitel.send(from,port,serial.serialize({rpcrq[2],false,"function unavailable"}))