asdf
This commit is contained in:
parent
2f947401da
commit
dfaecbfec7
|
@ -61,16 +61,15 @@ local ws = function (dict)
|
|||
|
||||
if response.Success then
|
||||
local msg = response.Body
|
||||
-- Rest of the code
|
||||
else
|
||||
error("Error Polling Messages: " .. response.StatusCode .. " " .. response.StatusMessage)
|
||||
end
|
||||
if notExists(messages, msg) then
|
||||
table.insert(messages, msg)
|
||||
if notEmpty(msg) then
|
||||
onMessage(msg)
|
||||
end
|
||||
end
|
||||
else
|
||||
error("Error Polling Messages: " .. response.StatusCode .. " " .. response.StatusMessage)
|
||||
end
|
||||
end
|
||||
end)
|
||||
coroutine.resume(loop)
|
||||
|
|
Loading…
Reference in a new issue