Prevented msgCheckList from becoming too massive

This commit is contained in:
LDDestroier 2019-05-02 10:45:12 -04:00 committed by GitHub
parent 54f54be8fe
commit 714da7ee03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ disknet.receive = function(channel)
doRewrite = false
for t = #contents, 1, -1 do
if getTime() - (contents[t].time or 0) > 0.01 then
msgCheckList[contents[t].messageID] = nil
table.remove(contents, t)
doRewrite = true
end