Software /
code /
prosody
Comparison
net/xmppcomponent_listener.lua @ 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 |
parent | 2077:e33658f6052c |
child | 2923:b7049746bd29 |
comparison
equal
deleted
inserted
replaced
2815:84123bcfa0ba | 2816:59dfb99831ae |
---|---|
167 hosts[session.host].connected = nil; | 167 hosts[session.host].connected = nil; |
168 end | 168 end |
169 sessions[conn] = nil; | 169 sessions[conn] = nil; |
170 for k in pairs(session) do session[k] = nil; end | 170 for k in pairs(session) do session[k] = nil; end |
171 session = nil; | 171 session = nil; |
172 collectgarbage("collect"); | |
173 end | 172 end |
174 end | 173 end |
175 | 174 |
176 connlisteners.register('xmppcomponent', component_listener); | 175 connlisteners.register('xmppcomponent', component_listener); |