mirror of
https://github.com/kepler155c/opus
synced 2026-02-28 04:39:45 +00:00
peripheral overhaul
This commit is contained in:
@@ -37,6 +37,7 @@ function socketClass:read(timeout)
|
||||
break
|
||||
end
|
||||
timerId = os.startTimer(5)
|
||||
self:ping()
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -54,10 +55,7 @@ end
|
||||
|
||||
function socketClass:ping()
|
||||
if self.connected then
|
||||
_G.transport.write(self, {
|
||||
type = 'PING',
|
||||
seq = self.wseq,
|
||||
})
|
||||
_G.transport.ping(self)
|
||||
return true
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user