- 69
- 3
- Версия MoonLoader
- .026-beta
в рандомный момент случается
краш случается в client:receive() почему так, я уже хз, ебусь с этим какой день
crash:
[00:22:56.315008] (error) test.lua: cannot resume non-suspended coroutine
stack traceback:
[C]: in function 'receive'
D:\Games\GTA\moonloader\lib\copas.lua:224: in function 'sock_receive'
D:\Games\GTA\moonloader\lib\websocket\sync.lua:25: in function 'receive'
D:\Games\GTA\moonloader\test.lua:1660: in function <D:\Games\GTA\moonloader\test.lua:1656>
code:
function main()
lua_thread.create(refreshChat)
end
code:
function refreshChat()
while true do
wait(0)
if connected then
local message, opcode = client:receive()
if message == nil then
client:close()
connected = false
else
processWebSocketMessage(message)
end
elseif not connected then
connectToWS()
end
end
end
краш случается в client:receive() почему так, я уже хз, ебусь с этим какой день