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
1 changed files with 2 additions and 0 deletions

View File

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