private void abandon(OutputStream out, ImapSession session) { if (session != null) { try { session.logout(); } catch (Throwable t) { LOGGER.warn("Session logout failed. Resources may not be correctly recycled."); } } try { out.write(ABANDON_SIGNOFF); } catch (Throwable t) { LOGGER.debug("Failed to write ABANDON_SIGNOFF", t); } processor.process(SystemMessage.FORCE_LOGOUT, new SilentResponder(), session); }
private void abandon(OutputStream out, ImapSession session) { if (session != null) { try { session.logout(); } catch (Throwable t) { session.getLog().warn("Session logout failed. Resources may not be correctly recycled."); } } try { out.write(ABANDON_SIGNOFF); } catch (Throwable t) { session.getLog().debug("Failed to write ABANDON_SIGNOFF", t); } processor.process(SystemMessage.FORCE_LOGOUT, new SilentResponder(), session); }