This commit is contained in:
Multi 2015-09-19 18:36:47 +02:00
parent 6dcd3d5c8d
commit 3528130991

View file

@ -138,7 +138,8 @@ local function recMsg()
printMsg("Type /logout to exit")
while true do
stream = http.post(server.."update.php",head)
newMessages = textutils.unserialize(stream.readAll())
if stream then
local newMessages = textutils.unserialize(stream.readAll())
stream.close()
for i,v in pairs(newMessages) do
t = textutils.unserialize(v)
@ -149,5 +150,6 @@ local function recMsg()
end
end
end
end
end
parallel.waitForAny(readMsg,recMsg)