From 278760f9135a6c833764938c354f27e7bca64b0c Mon Sep 17 00:00:00 2001 From: Collin Smith Date: Sat, 27 Jun 2020 16:58:32 -0700 Subject: [PATCH] Renamed sentPacket to sendConnectionPacket --- server/netty/src/com/riiablo/server/d2gs/TestClient.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/netty/src/com/riiablo/server/d2gs/TestClient.java b/server/netty/src/com/riiablo/server/d2gs/TestClient.java index 30269ccf..2ca8f20a 100644 --- a/server/netty/src/com/riiablo/server/d2gs/TestClient.java +++ b/server/netty/src/com/riiablo/server/d2gs/TestClient.java @@ -69,16 +69,15 @@ public class TestClient extends ApplicationAdapter implements PacketProcessor { }); ChannelFuture f = b.connect("localhost", Main.PORT).sync(); - sendPacket(); - Thread.currentThread().sleep(1); - sendPacket(); + sendConnectionPacket(); + sendConnectionPacket(); } catch (Throwable t) { Gdx.app.error(TAG, t.getMessage(), t); Gdx.app.exit(); } } - private void sendPacket() { + private void sendConnectionPacket() { InetSocketAddress remoteAddress = (InetSocketAddress) endpoint.channel().remoteAddress(); Gdx.app.log(TAG, "Sending Connection packet to " + remoteAddress.getHostString() + ":" + remoteAddress.getPort());