Merge pull request #743 from MottoX/cleanup

Cleanup unnecessary code
This commit is contained in:
Ilkka Seppälä authored and GitHub committed 2018-04-12 20:39:45 +03:00
commit 1e04b17a2d
2 files changed
+3 -6

No files matched your search

@@ -84,11 +84,8 @@ public class NioReactor {
/** /**
* Starts the reactor event loop in a new thread. * Starts the reactor event loop in a new thread.
*
* @throws IOException
* if any I/O error occurs.
*/ */
public void start() throws IOException { public void start() {
reactorMain.execute(() -> { reactorMain.execute(() -> {
try { try {
LOGGER.info("Reactor started, waiting for events..."); LOGGER.info("Reactor started, waiting for events...");
@@ -98,9 +98,9 @@ public class NioServerSocketChannel extends AbstractNioChannel {
*/ */
@Override @Override
public void bind() throws IOException { public void bind() throws IOException {
((ServerSocketChannel) getJavaChannel()).socket().bind( getJavaChannel().socket().bind(
new InetSocketAddress(InetAddress.getLocalHost(), port)); new InetSocketAddress(InetAddress.getLocalHost(), port));
((ServerSocketChannel) getJavaChannel()).configureBlocking(false); getJavaChannel().configureBlocking(false);
LOGGER.info("Bound TCP socket at port: {}", port); LOGGER.info("Bound TCP socket at port: {}", port);
} }