MCPcopy Create free account
hub / github.com/OpenVPN/openvpn3 / wait_thread_long

Method wait_thread_long

javacli/OpenVPNClientThread.java:143–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

141 // first call super stop() method then wait_thread().
142 // This method will wait forever for the thread to exit.
143 public void wait_thread_long() {
144 if (thread != null) {
145 boolean interrupted;
146 do {
147 interrupted = false;
148 try {
149 thread.join();
150 }
151 catch (InterruptedException e) {
152 interrupted = true;
153 super.stop(); // send thread a stop message
154 }
155 } while (interrupted);
156 }
157 }
158
159 public long bytes_in()
160 {

Callers 1

connectMethod · 0.80

Calls 2

joinMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected