Changeset

9386:0f395d82b4ea

net.connect: Remove manual onattach callback invocation
author Kim Alvefur <zash@zash.se>
date Wed, 26 Sep 2018 15:07:25 +0200
parents 9385:58fe099043ed
children 9387:33e52f727f0f
files net/connect.lua
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/net/connect.lua	Wed Sep 26 14:25:59 2018 +0200
+++ b/net/connect.lua	Wed Sep 26 15:07:25 2018 +0200
@@ -56,9 +56,6 @@
 	end
 	pending_connections_map[conn] = nil;
 	p:log("debug", "Successfully connected");
-	if p.listeners.onattach then
-		p.listeners.onattach(conn, p.data);
-	end
 	conn:setlistener(p.listeners);
 	return p.listeners.onconnect(conn);
 end