aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-08-22 21:23:37 +0100
committerMatthew Wild <mwild1@gmail.com>2010-08-22 21:23:37 +0100
commit85921c4877eb579130d39731ec40549a76e2e992 (patch)
tree6fa40aaa6955a5bcadd7d1758ca573186f5dbfb2
parentc3d3544fb03746b6988fa3de89f35b25472744fb (diff)
downloadprosody-85921c4877eb579130d39731ec40549a76e2e992.tar.gz
prosody-85921c4877eb579130d39731ec40549a76e2e992.zip
sessionmanager, s2smanager: Give resting sessions a pass-through filter, fixes #202
-rw-r--r--core/s2smanager.lua1
-rw-r--r--core/sessionmanager.lua1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/s2smanager.lua b/core/s2smanager.lua
index b93542e4..88d6a796 100644
--- a/core/s2smanager.lua
+++ b/core/s2smanager.lua
@@ -540,6 +540,7 @@ local resting_session = { -- Resting, not dead
close = function (session)
session.log("debug", "Attempt to close already-closed session");
end;
+ filter = function (type, data) return data; end;
}; resting_session.__index = resting_session;
function retire_session(session)
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index c4dee5b7..d36591bf 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -86,6 +86,7 @@ local resting_session = { -- Resting, not dead
close = function (session)
session.log("debug", "Attempt to close already-closed session");
end;
+ filter = function (type, data) return data; end;
}; resting_session.__index = resting_session;
function retire_session(session)