mirror of
https://github.com/kepler155c/opus
synced 2025-11-06 02:23:01 +00:00
networking improvements
This commit is contained in:
@@ -32,13 +32,13 @@ while true do
|
||||
end
|
||||
end)
|
||||
|
||||
-- ensure socket is connected
|
||||
process:newThread('pinger', function()
|
||||
while true do
|
||||
os.sleep(3)
|
||||
if not socket.connected then
|
||||
if not socket:ping() then
|
||||
break
|
||||
end
|
||||
socket:ping()
|
||||
end
|
||||
end)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user