From 7f9c753df9f016cc67bb2ee67a9a4f5652d0ec0b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Wed, 26 Sep 2018 15:07:25 +0200 Subject: net.connect: Remove manual onattach callback invocation --- net/connect.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'net/connect.lua') diff --git a/net/connect.lua b/net/connect.lua index 02ab4cc0..8a298c5d 100644 --- a/net/connect.lua +++ b/net/connect.lua @@ -56,9 +56,6 @@ function pending_connection_listeners.onconnect(conn) 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 -- cgit v1.2.3