ing
This commit is contained in:
parent
76bbb882fa
commit
5f292d7704
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user