networking improvements

This commit is contained in:
kepler155c@gmail.com
2017-05-10 06:11:25 -04:00
parent f866d2bd58
commit 3a922ad2f4
10 changed files with 97 additions and 57 deletions

View File

@@ -32,6 +32,16 @@ while true do
end
end)
process:newThread('pinger', function()
while true do
os.sleep(3)
if not socket.connected then
break
end
socket:ping()
end
end)
while true do
process:pullEvent('modem_message')
if updateThread:isDead() then