aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_c2s.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua
index 9af21759..e189498c 100644
--- a/plugins/mod_c2s.lua
+++ b/plugins/mod_c2s.lua
@@ -273,6 +273,7 @@ module:hook_global("c2s-session-updated", function (event)
local replaced_conn = event.replaced_conn;
if replaced_conn then
sessions[replaced_conn] = nil;
+ replaced_conn:close();
end
end);