fixed issues with timing in nshc-auth
This commit is contained in:
parent
10194ae89c
commit
7af951f0bb
@ -20,6 +20,7 @@ function nshc_w(evPP,nid,pW)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function nshc(P,nid,pW)
|
function nshc(P,nid,pW)
|
||||||
|
pW=(pW or readln("*"))
|
||||||
ns(nid,P,"initnsh")
|
ns(nid,P,"initnsh")
|
||||||
while true do
|
while true do
|
||||||
if ev[1] == "net_msg" and ev[2] == nid and ev[3] == P then
|
if ev[1] == "net_msg" and ev[2] == nid and ev[3] == P then
|
||||||
@ -27,5 +28,5 @@ function nshc(P,nid,pW)
|
|||||||
end
|
end
|
||||||
C.yield()
|
C.yield()
|
||||||
end
|
end
|
||||||
nshc_w(ev[4],nid,(pW or readln("*")))
|
nshc_w(ev[4],nid,pW)
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user