MCPcopy Create free account
hub / github.com/XCSoar/XCSoar / close

Method close

android/src/UsbSerialPort.java:88–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

86 }
87
88 public synchronized void close() {
89 parent.portClosed(this);
90
91 safeDestruct.beginShutdown();
92
93 if( serialDevice != null) {
94 serialDevice.close();
95 serialDevice = null;
96 }
97
98 if (connection != null) {
99 connection.close();
100 connection = null;
101 }
102
103 safeDestruct.finishShutdown();
104 }
105
106 /**
107 * Called by UsbSerialHelper after the device got disconnected.

Callers

nothing calls this directly

Calls 3

portClosedMethod · 0.80
beginShutdownMethod · 0.80
finishShutdownMethod · 0.80

Tested by

no test coverage detected