mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-28 15:30:08 -04:00
Merge branch 'master' of github.com:MightyPirates/OpenComputers into MC1.7
This commit is contained in:
commit
c46230e796
@ -38,10 +38,10 @@ function internet.request(url, data)
|
|||||||
while true do
|
while true do
|
||||||
local data, reason = inet.read(handle.value)
|
local data, reason = inet.read(handle.value)
|
||||||
if not data then
|
if not data then
|
||||||
|
inet.close(handle.value)
|
||||||
if reason then
|
if reason then
|
||||||
error(reason, 2)
|
error(reason, 2)
|
||||||
else
|
else
|
||||||
inet.close(handle.value)
|
|
||||||
return nil -- eof
|
return nil -- eof
|
||||||
end
|
end
|
||||||
elseif #data > 0 then
|
elseif #data > 0 then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user