net.connect: Remove manual onattach callback invocation
authorKim Alvefur <zash@zash.se>
Wed, 26 Sep 2018 15:07:25 +0200
changeset 9389 0f395d82b4ea
parent 9388 58fe099043ed
child 9390 33e52f727f0f
net.connect: Remove manual onattach callback invocation
net/connect.lua
--- 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