Core: Integrate Ref::instantiate where possible
This commit is contained in:
@ -112,7 +112,7 @@ Ref<StreamPeerTCP> TCPServer::take_connection() {
|
||||
return conn;
|
||||
}
|
||||
|
||||
conn = Ref<StreamPeerTCP>(memnew(StreamPeerTCP));
|
||||
conn.instantiate();
|
||||
conn->accept_socket(ns, ip, port);
|
||||
return conn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user