Software /
code /
prosody
Comparison
core/sessionmanager.lua @ 3459:543f31cdde19
sessionmanager, s2smanager: Give resting sessions a pass-through filter, fixes #202
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 22 Aug 2010 21:23:37 +0100 |
parent | 3437:1e93b4d46d92 |
child | 4230:23b68616b6d8 |
comparison
equal
deleted
inserted
replaced
3458:9c3ae41e696c | 3459:543f31cdde19 |
---|---|
84 destroyed = true; | 84 destroyed = true; |
85 type = "c2s_destroyed"; | 85 type = "c2s_destroyed"; |
86 close = function (session) | 86 close = function (session) |
87 session.log("debug", "Attempt to close already-closed session"); | 87 session.log("debug", "Attempt to close already-closed session"); |
88 end; | 88 end; |
89 filter = function (type, data) return data; end; | |
89 }; resting_session.__index = resting_session; | 90 }; resting_session.__index = resting_session; |
90 | 91 |
91 function retire_session(session) | 92 function retire_session(session) |
92 local log = session.log or log; | 93 local log = session.log or log; |
93 for k in pairs(session) do | 94 for k in pairs(session) do |