socket improvement

This commit is contained in:
kepler155c@gmail.com
2017-05-09 01:57:00 -04:00
parent ab73e3f2f9
commit f866d2bd58
10 changed files with 158 additions and 98 deletions

View File

@@ -101,7 +101,7 @@ process:newThread('discovery_server', function()
while true do
local e, s, sport, id, info, distance = os.pullEvent('modem_message')
if sport == 999 then
if sport == 999 and tonumber(id) and type(info) == 'table' then
if not network[id] then
network[id] = { }
end