aboutsummaryrefslogtreecommitdiffstats
path: root/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'main.lua')
-rw-r--r--main.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index 41d812bc..0df6bbd1 100644
--- a/main.lua
+++ b/main.lua
@@ -132,6 +132,8 @@ function handler(conn, data, err)
session.parser = lxp.new(session.xml_handlers, ":");
function session.disconnect(err)
+ hosts[session.host].sessions[session.username] = nil;
+ session = nil;
print("Disconnected: "..err);
end
end