move address load a bit earlier in time for first use

This commit is contained in:
payonel 2015-09-03 20:38:06 -07:00
parent 8c548cfc3d
commit b9fedc2da9

View File

@ -311,6 +311,12 @@ function modem_host.connectMessageBoard()
return true
end
-- computer address seems to be applied late
if modem_host.id == nil then
modem_host.id = component.list("computer",true)()
assert(modem_host.id)
end
local ok, info, critical = modem_host.joinExistingMessageBoard()
if not ok and critical then
@ -330,12 +336,6 @@ function modem_host.connectMessageBoard()
modem_host.clients = {}
modem_host.messages = {}
-- computer address seems to be applied late
if modem_host.id == nil then
modem_host.id = component.list("computer",true)()
assert(modem_host.id)
end
return true
end