Diff

plugins/mod_component.lua @ 6382:57d23c26039b

Merge 0.9->0.10
author Kim Alvefur <zash@zash.se>
date Tue, 02 Sep 2014 22:33:11 +0200
parent 6063:e626ee2fe106
parent 6380:4220ffb87b22
child 6774:3965662ae091
line wrap: on
line diff
--- a/plugins/mod_component.lua	Tue Sep 02 17:58:12 2014 +0100
+++ b/plugins/mod_component.lua	Tue Sep 02 22:33:11 2014 +0200
@@ -317,6 +317,10 @@
 	end
 end
 
+function listener.ondetach(conn)
+	sessions[conn] = nil;
+end
+
 module:provides("net", {
 	name = "component";
 	private = true;