fixed issues with timing in nshc-auth

This commit is contained in:
Izaya 2017-06-19 13:25:37 +00:00
parent 10194ae89c
commit 7af951f0bb

View File

@ -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