some general optomisations
This commit is contained in:
parent
7e0d963af3
commit
c945736ae1
@ -1,12 +1,12 @@
|
||||
function nshd_w(evPP,cA,sI)
|
||||
s("netsh daemon - "..tostring(sI),function() print(pcall(function()
|
||||
s("netsh daemon - "..tostring(sI),function()
|
||||
while true do
|
||||
if ev[1] == "net_msg" then
|
||||
local msg=tostring(ev[4])
|
||||
if ev[3] == evPP and ev[2] == cA then
|
||||
if msg:sub(1,3) == "key" then
|
||||
h("key",tT[cT][3].sI,tonumber(msg:sub(4)),0)
|
||||
elseif msg == "exit" then break
|
||||
elseif msg == "exit" then pcall(killsession,sI) break
|
||||
end
|
||||
end
|
||||
elseif ev[1] == "display" and ev[3] == tT[cT][3].sI then
|
||||
@ -14,11 +14,11 @@ s("netsh daemon - "..tostring(sI),function() print(pcall(function()
|
||||
end
|
||||
C.yield()
|
||||
end
|
||||
end)) end,{["sI"]=sI})
|
||||
end,{["sI"]=sI})
|
||||
end
|
||||
|
||||
function nshd(P)
|
||||
s("nshd",function() print(pcall(function()
|
||||
s("nshd",function()
|
||||
local Cc=1
|
||||
while true do
|
||||
if ev[1] == "net_msg" and ev[3] == P then
|
||||
@ -32,6 +32,6 @@ function nshd(P)
|
||||
end
|
||||
end
|
||||
C.yield()
|
||||
end end))
|
||||
end
|
||||
end,{["sI"]="log"})
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user