made a way to break out of the auth loop

This commit is contained in:
Izaya 2017-06-19 13:30:29 +00:00
parent 7af951f0bb
commit 41031d5ad2
2 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,8 @@ function nshc(P,nid,pW)
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
break break
elseif ev[1] == "key" and ev[2] == sI and ev[3] == 29 and ev[4] == 27 then
break
end end
C.yield() C.yield()
end end

View File

@ -23,6 +23,8 @@ function nshc(P,nid)
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
break break
elseif ev[1] == "key" and ev[2] == sI and ev[3] == 29 and ev[4] == 27 then
break
end end
C.yield() C.yield()
end end