mirror of
https://github.com/kepler155c/opus
synced 2025-10-21 10:47:40 +00:00
transport timeout on dead process
This commit is contained in:
@@ -79,8 +79,11 @@ Event.on('modem_message', function(_, _, dport, dhost, msg, distance)
|
|||||||
if socket and socket.connected then
|
if socket and socket.connected then
|
||||||
|
|
||||||
--if msg.type then _debug('<< ' .. Util.tostring(msg)) end
|
--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
|
-- received disconnect from other end
|
||||||
if socket.connected then
|
if socket.connected then
|
||||||
os.queueEvent('transport_' .. socket.uid)
|
os.queueEvent('transport_' .. socket.uid)
|
||||||
|
Reference in New Issue
Block a user