From 38fe771ed80d66d89c1cce94775bcae18c22a279 Mon Sep 17 00:00:00 2001 From: Paul Speed Date: Sun, 15 Nov 2015 01:22:17 -0500 Subject: [PATCH] Modified the client state messages to include the chat instance in case we add a multi-client test. --- .../src/main/java/jme3test/network/TestChatClient.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/jme3-examples/src/main/java/jme3test/network/TestChatClient.java b/jme3-examples/src/main/java/jme3test/network/TestChatClient.java index 219ccd58f..0cdc46c39 100644 --- a/jme3-examples/src/main/java/jme3test/network/TestChatClient.java +++ b/jme3-examples/src/main/java/jme3test/network/TestChatClient.java @@ -93,6 +93,8 @@ public class TestChatClient extends JFrame { client.addMessageListener(new ChatHandler(), ChatMessage.class); client.addClientStateListener(new ChatClientStateListener()); client.start(); + + System.out.println("Started client:" + client); } @Override @@ -158,12 +160,12 @@ public class TestChatClient extends JFrame { @Override public void clientConnected(Client c) { - System.out.println("clientConnected()"); + System.out.println("clientConnected(" + c + ")"); } @Override public void clientDisconnected(Client c, DisconnectInfo info) { - System.out.println("clientDisconnected()"); + System.out.println("clientDisconnected(" + c + ")"); } }