fix(inferium-server): bug when evaluating the type of a message
This commit is contained in:
parent
7233ed7eb5
commit
9bd5bbc127
@ -3,7 +3,7 @@ local inferiumPlans = require('config/inferium-plans') -- temporary default plan
|
||||
|
||||
local INFERIUM_SERVER = 'inferium.com'
|
||||
local UPGRADE_SCRIPT = '/upgrade.lua'
|
||||
local VERSION = "0.5.1"
|
||||
local VERSION = "0.5.2"
|
||||
|
||||
local defaultPlan = inferiumPlans.default or error('no default plan provided in config', 0)
|
||||
|
||||
@ -52,7 +52,7 @@ net.openRednet()
|
||||
print('> inferium server v' .. VERSION .. ' started')
|
||||
|
||||
net.listenQuery(INFERIUM_SERVER, function(message, computerId, stopServer)
|
||||
if type(message) ~= table then
|
||||
if type(message) ~= 'table' then
|
||||
print('error: malformed message received', textutils.serialize(message))
|
||||
return {}
|
||||
end
|
||||
|
||||
Loading…
Reference in New Issue
Block a user