@Override public void free() { if (wakeup.source().isOpen()) { try { wakeup.source().close(); } catch(IOException e) { // Ignore. } } if (wakeup.sink().isOpen()) { try { wakeup.sink().close(); } catch(IOException e) { // Ignore } } if (selector != null) { selector.free(); } for (ReactorChild child : children) { child.free(); } }
@Override public void free() { if (wakeup.source().isOpen()) { try { wakeup.source().close(); } catch(IOException e) { // Ignore. } } if (wakeup.sink().isOpen()) { try { wakeup.sink().close(); } catch(IOException e) { // Ignore } } if (selector != null) { selector.free(); } for (ReactorChild child : children) { child.free(); } }