*
*/
public void stop() {
-
for (Iterator<Entry<Long, ISwitch>> it = switches.entrySet().iterator(); it
.hasNext();) {
Entry<Long, ISwitch> entry = it.next();
it.remove();
}
switchEventThread.interrupt();
- controllerIO.shutDown();
+ try {
+ controllerIO.shutDown();
+ } catch (IOException ex) {
+ logger.error("Caught exception: " + ex + " during stop");
+ }
}
/**
switchHandler.start();
logger.info(instanceName + " connected: " + sc.toString());
} catch (IOException e) {
- logger
- .error("Caught I/O Exception when trying to accept a new connection");
return;
}
}