0
ConnectFuture future = connector.connect(address);
future.addListener(new IoFutureListener<ConnectFuture>() {
    @Override
    ublic void operationComplete(ConnectFuture future) {
    try
    {
        if (future.isConnected()) 

when I connect using the following code to a server it works fine and isConnected returns me TRUE. But when server crash and comes up I try it again. Then its not working. Then I need to restart the client as well. Any idea why?

Donato Szilagyi
  • 4,279
  • 4
  • 36
  • 53
dinesh707
  • 12,106
  • 22
  • 84
  • 134

0 Answers0