Close the connection without sending any commands.
()
| 808 | * Close the connection without sending any commands. |
| 809 | */ |
| 810 | void close() { |
| 811 | try { |
| 812 | if (socket != null) |
| 813 | socket.close(); |
| 814 | if (traceInput != null && traceOutput != null) |
| 815 | eu.faircode.email.TrafficStatsHelper.report(host, prefix, |
| 816 | traceOutput.getSent(), traceInput.getReceived()); |
| 817 | } catch (IOException ex) { |
| 818 | // ignore it |
| 819 | } finally { |
| 820 | socket = null; |
| 821 | input = null; |
| 822 | output = null; |
| 823 | } |
| 824 | } |
| 825 | |
| 826 | /** |
| 827 | * Return the total number of messages and mailbox size, |
no test coverage detected