Diff

net/connect.lua @ 9387:33e52f727f0f

net.connect: Fix passing request table to new listener This could be a return value from ondetach
author Kim Alvefur <zash@zash.se>
date Wed, 26 Sep 2018 17:36:53 +0200
parent 9386:0f395d82b4ea
child 10112:b327f2870382
line wrap: on
line diff
--- a/net/connect.lua	Wed Sep 26 15:07:25 2018 +0200
+++ b/net/connect.lua	Wed Sep 26 17:36:53 2018 +0200
@@ -56,7 +56,7 @@
 	end
 	pending_connections_map[conn] = nil;
 	p:log("debug", "Successfully connected");
-	conn:setlistener(p.listeners);
+	conn:setlistener(p.listeners, p.data);
 	return p.listeners.onconnect(conn);
 end