Inlined an internal method call. (#716)

This commit is contained in:
rodolphito 2019-04-04 00:46:19 -07:00 committed by vis2k
parent e9717d87ad
commit df132b6893

View File

@ -43,11 +43,6 @@ public class NetworkClient
// to avoid race conditions. keep packets in Queue until LateUpdate.
internal static Queue<byte[]> localClientPacketQueue = new Queue<byte[]>();
internal static void SetHandlers(NetworkConnection conn)
{
conn.SetHandlers(handlers);
}
// connect remote
public static void Connect(string address)
{
@ -77,7 +72,7 @@ internal static void ConnectLocalServer()
// create local connection to server
connection = new ULocalConnectionToServer();
SetHandlers(connection);
connection.SetHandlers(handlers);
// create server connection to local client
ULocalConnectionToClient connectionToClient = new ULocalConnectionToClient();