# HG changeset patch # User Waqas Hussain # Date 1256487685 -18000 # Node ID a43aea9b0bd12d95b99949e57c0d9f161666ef6f # Parent f5a198127dd381e328b452c2e413b0c32f8928a3 mod_console: Added proper cleanup for disconnected console sessions. diff -r f5a198127dd3 -r a43aea9b0bd1 plugins/mod_console.lua --- a/plugins/mod_console.lua Sun Oct 25 21:07:32 2009 +0500 +++ b/plugins/mod_console.lua Sun Oct 25 21:21:25 2009 +0500 @@ -127,7 +127,11 @@ 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);