ing
This commit is contained in:
parent
76bbb882fa
commit
5f292d7704
|
@ -76,11 +76,12 @@ public class Client {
|
||||||
});
|
});
|
||||||
|
|
||||||
this.init();
|
this.init();
|
||||||
ChannelFuture cf = b.connect(serverURI.getHost(), serverURI.getPort());
|
ChannelFuture cf = b.connect(serverURI.getHost(), serverURI.getPort()).sync();
|
||||||
this.onStart();
|
this.onStart();
|
||||||
cf.sync();
|
|
||||||
|
|
||||||
this.channel = cf.channel();
|
this.channel = cf.channel();
|
||||||
|
|
||||||
|
this.channel.closeFuture().sync();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.error("Client", e);
|
logger.error("Client", e);
|
||||||
} finally {
|
} finally {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user