local threadi = {}
local _meta = {__mode = "k"}
-setmetatable(threads, _meta)
setmetatable(threadm, _meta)
setmetatable(threadi, _meta)
local now = os.time()
if coroutine.status(thread) == "dead" then
threadc = threadc - 1
+ threads[client] = nil
elseif threadm[client] and threadm[client] + THREAD_TIMEOUT < now then
threads[client] = nil
threadc = threadc - 1