client.lua

changeset 46
6a329776fb42
parent 38
c40cc28ac7df
child 47
3ebffb4fc48c
--- a/client.lua	Wed Jan 06 17:42:57 2010 +0000
+++ b/client.lua	Wed Jan 06 17:43:25 2010 +0000
@@ -107,7 +107,9 @@
 	if not self.notopen then
 		self:send("</stream:stream>");
 	end
+	local on_disconnect = self.conn.disconnect();
 	self.conn:close();
+	on_disconnect(conn, reason);
 end
 
 function stream:send_iq(iq, callback)

mercurial