Mercurial > prosody-hg
comparison core/s2smanager.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 |
| parents | 9c454c029c26 |
| children | 193bb0936a4e |
comparison
equal
deleted
inserted
replaced
| 3458:9c3ae41e696c | 3459:543f31cdde19 |
|---|---|
| 538 session.log("debug", "Attempt to open stream on resting session"); | 538 session.log("debug", "Attempt to open stream on resting session"); |
| 539 end; | 539 end; |
| 540 close = function (session) | 540 close = function (session) |
| 541 session.log("debug", "Attempt to close already-closed session"); | 541 session.log("debug", "Attempt to close already-closed session"); |
| 542 end; | 542 end; |
| 543 filter = function (type, data) return data; end; | |
| 543 }; resting_session.__index = resting_session; | 544 }; resting_session.__index = resting_session; |
| 544 | 545 |
| 545 function retire_session(session) | 546 function retire_session(session) |
| 546 local log = session.log or log; | 547 local log = session.log or log; |
| 547 for k in pairs(session) do | 548 for k in pairs(session) do |
