diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-24 20:34:22 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-24 20:34:22 +0000 |
commit | f5afdcb5642fb5260717613cc7909e20805a957c (patch) | |
tree | a8b8d1f506607524fa052a26c3197b53c95b62e3 | |
parent | f4651d789af716615e950cb653e8f6a5b1ed0a63 (diff) | |
download | prosody-f5afdcb5642fb5260717613cc7909e20805a957c.tar.gz prosody-f5afdcb5642fb5260717613cc7909e20805a957c.zip |
core.sessionmanager, net.*_listener: Remove the evil collectgarbage() calls
-rw-r--r-- | core/sessionmanager.lua | 1 | ||||
-rw-r--r-- | net/xmppclient_listener.lua | 1 | ||||
-rw-r--r-- | net/xmppcomponent_listener.lua | 1 | ||||
-rw-r--r-- | net/xmppserver_listener.lua | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua index 380d8129..69160af7 100644 --- a/core/sessionmanager.lua +++ b/core/sessionmanager.lua @@ -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 --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index fc0dce2c..4fd51db6 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -140,7 +140,6 @@ function xmppclient.ondisconnect(conn, err) sm_destroy_session(session, err); sessions[conn] = nil; session = nil; - collectgarbage("collect"); end end diff --git a/net/xmppcomponent_listener.lua b/net/xmppcomponent_listener.lua index 790ab0b7..4920548d 100644 --- a/net/xmppcomponent_listener.lua +++ b/net/xmppcomponent_listener.lua @@ -169,7 +169,6 @@ function component_listener.ondisconnect(conn, err) sessions[conn] = nil; for k in pairs(session) do session[k] = nil; end session = nil; - collectgarbage("collect"); end end diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index 797ef183..3c038b83 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -162,7 +162,6 @@ function xmppserver.ondisconnect(conn, err) s2s_destroy_session(session); sessions[conn] = nil; session = nil; - collectgarbage("collect"); end end |