X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fprotocol_plugins%2Fopenflow%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fprotocol_plugin%2Fopenflow%2Fcore%2Finternal%2FControllerIO.java;h=3e39ab26e6680603391da98b08bef1d82e1df6ba;hp=e1bc2d0c1446a9c6e8b2999f9345a22300b11e62;hb=0a980f274122e5b73f40dfb9a85783f3023e08a6;hpb=29f7cfb54b580928c7feac63abce028a7014b0d5 diff --git a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java index e1bc2d0c14..3e39ab26e6 100644 --- a/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java +++ b/opendaylight/protocol_plugins/openflow/src/main/java/org/opendaylight/controller/protocol_plugin/openflow/core/internal/ControllerIO.java @@ -76,9 +76,8 @@ public class ControllerIO { serverSelectionKey); } } - } catch (IOException e) { - logger.error("Caught I/O Exception: " + e.toString()); - return; + } catch (Exception e) { + continue; } } } @@ -87,13 +86,9 @@ public class ControllerIO { logger.info("Controller is now listening on port " + openFlowPort); } - public void shutDown() { + public void shutDown() throws IOException { this.running = false; this.selector.wakeup(); - try { - this.serverSocket.close(); - } catch (IOException e) { - e.printStackTrace(); - } + this.serverSocket.close(); } }