aboutsummaryrefslogtreecommitdiffstats
path: root/core/sessionmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-03 18:06:04 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-03 18:06:04 +0000
commit11538c72c66d63aa440373558f36f646a2985ec1 (patch)
tree4bcd7f7b2dec82d36023cec533acd33fb9cacc7d /core/sessionmanager.lua
parent396d493b18d04e81c5d5a7d67fc9ef7c16be9558 (diff)
downloadprosody-11538c72c66d63aa440373558f36f646a2985ec1.tar.gz
prosody-11538c72c66d63aa440373558f36f646a2985ec1.zip
Added an error log message for this case
Diffstat (limited to 'core/sessionmanager.lua')
-rw-r--r--core/sessionmanager.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/sessionmanager.lua b/core/sessionmanager.lua
index 98c41962..36111633 100644
--- a/core/sessionmanager.lua
+++ b/core/sessionmanager.lua
@@ -80,6 +80,10 @@ function destroy_session(session, err)
log("debug", "All resources of %s are now offline", session.username);
hosts[session.host].sessions[session.username] = nil;
end
+ else
+ log("error", "host or session table didn't exist, please report this! Host: %s [%s] Sessions: %s [%s]",
+ tostring(hosts[session.host]), tostring(session.host),
+ tostring(hosts[session.host].sessions[session.username] ), tostring(session.username));
end
end