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()
S=""
repeat
coroutine.yield()
ns = R.read(2048)
S = S .. (ns or "")
until not ns