diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-10-26 23:30:15 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-10-26 23:30:15 +0000 |
commit | f0b9e5befac2aef2c57d68d1441faed693bacea6 (patch) | |
tree | 6b0f9746afaa3356db58aa3a7ef0cc533bd87d04 /plugins/mod_console.lua | |
parent | 493cfc98173579fe924d06b353cf5416471dec1c (diff) | |
parent | c73ece03d8efcc4b46712ff32b7da610cb21dc4f (diff) | |
download | prosody-f0b9e5befac2aef2c57d68d1441faed693bacea6.tar.gz prosody-f0b9e5befac2aef2c57d68d1441faed693bacea6.zip |
Merge with trunk
Diffstat (limited to 'plugins/mod_console.lua')
-rw-r--r-- | plugins/mod_console.lua | 6 |
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); |