made wget less needy.

This commit is contained in:
Izaya 2017-09-09 22:57:48 +10:00
parent 3dff3ce99e
commit 064064eb26
1 changed files with 1 additions and 0 deletions

View File

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