Fixed some problems and added cleanup on shutdown

This commit is contained in:
2015-10-12 12:44:13 +02:00
parent 3d1bd7227b
commit 117ac3ca73
3 changed files with 8 additions and 8 deletions

View File

@ -52,7 +52,7 @@ public class Application {
.messageRepo(new JdbcMessageRepository(jdbcConfig))
.networkHandler(new DefaultNetworkHandler())
.security(new BouncySecurity())
.port(48444)
// .port(48444)
.listener(new BitmessageContext.Listener() {
@Override
public void receive(Plaintext plaintext) {
@ -109,6 +109,7 @@ public class Application {
}
} while (!"e".equals(command));
LOG.info("Shutting down client");
ctx.cleanup();
ctx.shutdown();
}