Changeset

331:d23bb21668a7

verse: Fix disconnected event for unassociated connections
author Kim Alvefur <zash@zash.se>
date Sun, 10 Feb 2013 18:06:43 +0100
parents 330:44d2bd1cee46
children 332:6ecf44918156
files init.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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