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