--- a/init.lua Sun Feb 10 04:20:44 2013 +0100+++ b/init.lua Sun Feb 10 04:29:20 2013 +0100@@ -150,7 +150,7 @@ end local on_disconnect = self.conn.disconnect(); self.conn:close();- on_disconnect(self.conn, reason);+ on_disconnect(self, reason); end -- Logging functions