Update the download lua for better receiving.
This commit is contained in:
parent
6b0e64ec04
commit
e0d8c0bf42
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user