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
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ function nshc_w(evPP,nid,pW)
end
function nshc(P,nid,pW)
pW=(pW or readln("*"))
ns(nid,P,"initnsh")
while true do
if ev[1] == "net_msg" and ev[2] == nid and ev[3] == P then
@ -27,5 +28,5 @@ function nshc(P,nid,pW)
end
C.yield()
end
nshc_w(ev[4],nid,(pW or readln("*")))
nshc_w(ev[4],nid,pW)
end