aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_console.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-26 23:30:15 +0000
committerMatthew Wild <mwild1@gmail.com>2009-10-26 23:30:15 +0000
commitf0b9e5befac2aef2c57d68d1441faed693bacea6 (patch)
tree6b0f9746afaa3356db58aa3a7ef0cc533bd87d04 /plugins/mod_console.lua
parent493cfc98173579fe924d06b353cf5416471dec1c (diff)
parentc73ece03d8efcc4b46712ff32b7da610cb21dc4f (diff)
downloadprosody-f0b9e5befac2aef2c57d68d1441faed693bacea6.tar.gz
prosody-f0b9e5befac2aef2c57d68d1441faed693bacea6.zip
Merge with trunk
Diffstat (limited to 'plugins/mod_console.lua')
-rw-r--r--plugins/mod_console.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/mod_console.lua b/plugins/mod_console.lua
index a46eec12..5a092298 100644
--- a/plugins/mod_console.lua
+++ b/plugins/mod_console.lua
@@ -127,7 +127,11 @@ function console_listener.listener(conn, data)
end
function console_listener.disconnect(conn, err)
-
+ local session = sessions[conn];
+ if session then
+ session.disconnect();
+ sessions[conn] = nil;
+ end
end
connlisteners_register('console', console_listener);