# HG changeset patch # User Matthew Wild # Date 1259094862 0 # Node ID 59dfb99831ae52d07152fbb92bca8e71b8f9abb5 # Parent 84123bcfa0ba1c693ee8099814bbdcec32943507 core.sessionmanager, net.*_listener: Remove the evil collectgarbage() calls diff -r 84123bcfa0ba -r 59dfb99831ae core/sessionmanager.lua --- a/core/sessionmanager.lua Mon Nov 23 02:58:42 2009 +0000 +++ b/core/sessionmanager.lua Tue Nov 24 20:34:22 2009 +0000 @@ -10,7 +10,6 @@ local tonumber, tostring = tonumber, tostring; local ipairs, pairs, print, next= ipairs, pairs, print, next; -local collectgarbage = collectgarbage; local format = import("string", "format"); local hosts = hosts; diff -r 84123bcfa0ba -r 59dfb99831ae net/xmppclient_listener.lua --- a/net/xmppclient_listener.lua Mon Nov 23 02:58:42 2009 +0000 +++ b/net/xmppclient_listener.lua Tue Nov 24 20:34:22 2009 +0000 @@ -140,7 +140,6 @@ sm_destroy_session(session, err); sessions[conn] = nil; session = nil; - collectgarbage("collect"); end end diff -r 84123bcfa0ba -r 59dfb99831ae net/xmppcomponent_listener.lua --- a/net/xmppcomponent_listener.lua Mon Nov 23 02:58:42 2009 +0000 +++ b/net/xmppcomponent_listener.lua Tue Nov 24 20:34:22 2009 +0000 @@ -169,7 +169,6 @@ sessions[conn] = nil; for k in pairs(session) do session[k] = nil; end session = nil; - collectgarbage("collect"); end end diff -r 84123bcfa0ba -r 59dfb99831ae net/xmppserver_listener.lua --- a/net/xmppserver_listener.lua Mon Nov 23 02:58:42 2009 +0000 +++ b/net/xmppserver_listener.lua Tue Nov 24 20:34:22 2009 +0000 @@ -162,7 +162,6 @@ s2s_destroy_session(session); sessions[conn] = nil; session = nil; - collectgarbage("collect"); end end