Update the download lua for better receiving.

This commit is contained in:
Captain ALM 2019-12-26 21:44:42 +00:00
parent 6b0e64ec04
commit e0d8c0bf42

View File

@ -74,6 +74,7 @@ local function readc(con)
if tmp ~= nil then if tmp ~= nil then
if tmp ~= "" then if tmp ~= "" then
data = data..tmp data = data..tmp
con:setTimeout(0)
end end
end end
end, end,
@ -87,6 +88,7 @@ local function readc(con)
if data == "" then if data == "" then
data = nil data = nil
end end
con:setTimeout(5)
return data return data
end end