Diff

init.lua @ 331:d23bb21668a7

verse: Fix disconnected event for unassociated connections
author Kim Alvefur <zash@zash.se>
date Sun, 10 Feb 2013 18:06:43 +0100
parent 330:44d2bd1cee46
child 361:451dbad2a8e6
line wrap: on
line diff
--- a/init.lua	Sun Feb 10 18:02:00 2013 +0100
+++ b/init.lua	Sun Feb 10 18:06:43 2013 +0100
@@ -229,7 +229,7 @@
 	end
 	
 	function conn_listener.ondisconnect(conn, err)
-		if conn.conn ~= stream.conn then return end
+		if conn ~= stream.conn then return end
 		stream.connected = false;
 		stream:event("disconnected", { reason = err });
 	end