iteration
This commit is contained in:
@@ -117,8 +117,11 @@ while true do
|
||||
["token"] = request.token
|
||||
}, "auth")
|
||||
|
||||
authID, auth_response = rednet.receive("auth")
|
||||
log_debug("Auth response: " .. auth_response)
|
||||
local responseServerID = nil
|
||||
while responseServerID ~= authID do
|
||||
responseServerID, auth_response = rednet.receive("auth")
|
||||
end
|
||||
|
||||
local errorPos, errorEnd = string.find(auth_response, "invalid")
|
||||
if errorPos then
|
||||
log("Error: " .. auth_response)
|
||||
|
||||
Reference in New Issue
Block a user