# HG changeset patch # User Matthew Wild # Date 1262799805 0 # Node ID 6a329776fb42bd63261338faabe1bce74400aebd # Parent 50a2e4fb0a16c3a836fc1bb0e54d5322af349a24 verse.client: Fire disconnected event when the disconnect is initiated by the client too diff -r 50a2e4fb0a16 -r 6a329776fb42 client.lua --- 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(""); end + local on_disconnect = self.conn.disconnect(); self.conn:close(); + on_disconnect(conn, reason); end function stream:send_iq(iq, callback)