Extract connection interface.
[xudocci.git] / src / main / java / net / pterodactylus / irc / DefaultConnectionFactory.java
index 6a37394..96e7e62 100644 (file)
@@ -19,7 +19,7 @@ public class DefaultConnectionFactory implements ConnectionFactory {
 
        @Override
        public Connection createConnection(String hostname, int port) {
-               return new Connection(eventBus, SocketFactory.getDefault(), hostname, port);
+               return new DefaultConnection(eventBus, SocketFactory.getDefault(), hostname, port);
        }
 
 }