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

Method closeServerSocket

android/src/BluetoothServerPort.java:64–76  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

62 }
63
64 private void closeServerSocket() {
65 BluetoothServerSocket s = stealServerSocket();
66 if (s == null)
67 return;
68
69 try {
70 s.close();
71 } catch (IOException e) {
72 Log.e(TAG, "Failed to close Bluetooth server socket", e);
73 }
74
75 stateChanged();
76 }
77
78 @Override public void run() {
79 while (true) {

Callers 2

runMethod · 0.95
closeMethod · 0.95

Calls 3

stealServerSocketMethod · 0.95
closeMethod · 0.45
stateChangedMethod · 0.45

Tested by

no test coverage detected