iteration
This commit is contained in:
		@ -28,9 +28,13 @@ rednet.send(receiverID, data)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
while true do
 | 
					while true do
 | 
				
			||||||
    id, msg = rednet.receive()
 | 
					    id, msg = rednet.receive()
 | 
				
			||||||
 | 
					    if id == receiverID then
 | 
				
			||||||
        if msg == "ok" then
 | 
					        if msg == "ok" then
 | 
				
			||||||
            print("Registered with LNS Server Successfully!")
 | 
					            print("Registered with LNS Server Successfully!")
 | 
				
			||||||
            break
 | 
					            break
 | 
				
			||||||
 | 
					        else
 | 
				
			||||||
 | 
					            print("Failed to register with LNS Server! Error: " .. msg)
 | 
				
			||||||
 | 
					            break
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        -- timeout after 5 seconds
 | 
					        -- timeout after 5 seconds
 | 
				
			||||||
@ -38,4 +42,5 @@ while true do
 | 
				
			|||||||
            print("Failed to register with LNS Server! Timeout!")
 | 
					            print("Failed to register with LNS Server! Timeout!")
 | 
				
			||||||
            break
 | 
					            break
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
 | 
					    end
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
		Reference in New Issue
	
	Block a user