Remove pointless delay

This commit is contained in:
osmarks 2018-07-27 10:03:41 +01:00
parent 0d51a01d9d
commit 92ac4d0fbc

View File

@ -137,7 +137,6 @@ local function query_by_ID(ID, request, max_tries)
rednet.send(ID, request_object, protocol) rednet.send(ID, request_object, protocol)
_, result = rednet.receive(protocol, 1) _, result = rednet.receive(protocol, 1)
tries = tries + 1 tries = tries + 1
sleep(1)
until result ~= nil or tries >= max_tries until result ~= nil or tries >= max_tries
if result == nil then result = errors.make(errors.NORESPONSE, ID) end if result == nil then result = errors.make(errors.NORESPONSE, ID) end