mirror of
https://github.com/kepler155c/opus
synced 2025-02-04 03:09:11 +00:00
transport timeout on dead process
This commit is contained in:
parent
2517612622
commit
c9a42e2502
@ -79,8 +79,11 @@ Event.on('modem_message', function(_, _, dport, dhost, msg, distance)
|
||||
if socket and socket.connected then
|
||||
|
||||
--if msg.type then _debug('<< ' .. Util.tostring(msg)) end
|
||||
if socket.co and coroutine.status(socket.co) == 'dead' then
|
||||
_G._debug('socket coroutine dead')
|
||||
socket:close()
|
||||
|
||||
if msg.type == 'DISC' then
|
||||
elseif msg.type == 'DISC' then
|
||||
-- received disconnect from other end
|
||||
if socket.connected then
|
||||
os.queueEvent('transport_' .. socket.uid)
|
||||
|
Loading…
Reference in New Issue
Block a user