MCPcopy Create free account
hub / github.com/M66B/FairEmail / disconnect

Method disconnect

app/src/main/java/com/sun/mail/iap/Protocol.java:632–644  ·  view source on GitHub ↗

Disconnect.

()

Source from the content-addressed store, hash-verified

630 * Disconnect.
631 */
632 protected synchronized void disconnect() {
633 if (socket != null) {
634 try {
635 socket.close();
636 } catch (IOException e) {
637 // ignore it
638 }
639 socket = null;
640 if (traceInput != null && traceOutput != null)
641 eu.faircode.email.TrafficStatsHelper.report(host, prefix,
642 traceOutput.getSent(), traceInput.getReceived());
643 }
644 }
645
646 /**
647 * Get the name of the local host.

Callers 8

ProtocolMethod · 0.95
handleResultMethod · 0.95
finalizeMethod · 0.95
uploadMethod · 0.45
callMethod · 0.45
uploadMethod · 0.45
callMethod · 0.45
getMethod · 0.45

Calls 4

reportMethod · 0.65
closeMethod · 0.45
getSentMethod · 0.45
getReceivedMethod · 0.45

Tested by

no test coverage detected