1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-12-26 02:08:07 +11:00

more timeout-related bugfixes

This commit is contained in:
Izaya 2018-07-02 01:16:07 +10:00
parent c3cd39544b
commit d726ddbfb6

View File

@ -53,6 +53,7 @@ local function cwrite(self,data)
if self.state == "open" then
if not net.send(self.addr,self.port,data) then
self:close()
return false, "timed out"
end
end
end
@ -90,7 +91,7 @@ local function socket(addr,port,sclose)
end
function net.open(to,port)
net.rsend(to,port,"openstream")
if not net.rsend(to,port,"openstream") then return false, "no ack from host" end
local st = computer.uptime()+net.streamdelay
local est = false
while true do