Changeset

2816:59dfb99831ae

core.sessionmanager, net.*_listener: Remove the evil collectgarbage() calls
author Matthew Wild <mwild1@gmail.com>
date Tue, 24 Nov 2009 20:34:22 +0000
parents 2815:84123bcfa0ba
children 2817:8a411db08af4
files core/sessionmanager.lua net/xmppclient_listener.lua net/xmppcomponent_listener.lua net/xmppserver_listener.lua
diffstat 4 files changed, 0 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
--- 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
 
--- 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
 
--- 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