mirror of
https://github.com/kepler155c/opus
synced 2025-01-23 13:46:53 +00:00
adjust network timeout
This commit is contained in:
parent
d6a77ba487
commit
098e9650ac
@ -108,7 +108,9 @@ Event.on('modem_message', function(_, _, dport, dhost, msg, distance)
|
||||
socket.activityTimer = os.clock()
|
||||
if msg.seq ~= socket.rseq then
|
||||
print('transport seq error - closing socket ' .. socket.sport)
|
||||
debug(msg.data)
|
||||
socket:close()
|
||||
os.queueEvent('transport_' .. socket.uid)
|
||||
else
|
||||
socket.rseq = socket.rseq + 1
|
||||
table.insert(socket.messages, { msg.data, distance })
|
||||
|
Loading…
Reference in New Issue
Block a user