So when i bind the port in netty i do this:
Code:
bootstrap.....bind(port).channel().closeFuture().sync();
The code that comes after this will not execute, maybe because it's waiting
So how i make it bind the port then execute the rest, for example i want to print this after bind
Code:
System.out.println("The server has been bound on port: " + port);
Edit FIXED
Code:
ChannelFuture future = bootstrap...closeFuture();

// do some things

future.sync();