fix
This commit is contained in:
parent
6dcd3d5c8d
commit
3528130991
1 changed files with 10 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue