Check if data is not nil.
This commit is contained in:
parent
e74e1f4eef
commit
10b965b3bc
@ -123,6 +123,7 @@ local function listenToMiners()
|
|||||||
print("Message already table, not deserializing.")
|
print("Message already table, not deserializing.")
|
||||||
data = serialized
|
data = serialized
|
||||||
end
|
end
|
||||||
|
if (data == nil) then return end
|
||||||
if data["token"] == TOKEN and data["recipient"] == HOST then
|
if data["token"] == TOKEN and data["recipient"] == HOST then
|
||||||
handleMessage(data["sender"], data["type"], data)
|
handleMessage(data["sender"], data["type"], data)
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user