--- a/init.lua Sun Feb 10 02:54:01 2013 +0100+++ b/init.lua Sun Feb 10 03:29:04 2013 +0100@@ -229,6 +229,7 @@ end function conn_listener.ondisconnect(conn, err)+ if conn.conn ~= stream.conn then return end stream.connected = false; stream:event("disconnected", { reason = err }); end