Log connection attempts.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 13 Jan 2015 21:09:29 +0000 (22:09 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Tue, 13 Jan 2015 21:10:04 +0000 (22:10 +0100)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index 0db311c..e24fa2f 100644 (file)
@@ -478,6 +478,7 @@ public class Core extends AbstractExecutionThreadService {
                                return;
                        }
                        Server server = servers.get((int) (Math.random() * servers.size()));
+                       eventBus.post(new GenericMessage(String.format("Connecting to %s on %s...", network.name(), server.hostname())));
                        Connection connection = connectionFactory.createConnection(server.hostname(),
                                        server.unencryptedPorts().iterator().next());
                        connection.username(RandomNickname.get()).realName(RandomNickname.get());