This commit is contained in:
crusader 2018-05-04 18:04:42 +09:00
parent 76bbb882fa
commit 5f292d7704

View File

@ -76,11 +76,12 @@ public class Client {
});
this.init();
ChannelFuture cf = b.connect(serverURI.getHost(), serverURI.getPort());
ChannelFuture cf = b.connect(serverURI.getHost(), serverURI.getPort()).sync();
this.onStart();
cf.sync();
this.channel = cf.channel();
this.channel.closeFuture().sync();
} catch (Exception e) {
logger.error("Client", e);
} finally {