made wget less needy.

This commit is contained in:
Izaya 2017-09-09 22:57:48 +10:00
parent 3dff3ce99e
commit 064064eb26

View File

@ -5,6 +5,7 @@ function wget(url)
until R.finishConnect() until R.finishConnect()
S="" S=""
repeat repeat
coroutine.yield()
ns = R.read(2048) ns = R.read(2048)
S = S .. (ns or "") S = S .. (ns or "")
until not ns until not ns